]> Cypherpunks repositories - gostls13.git/commit
runtime: fix uncondition calls to traceGCSTWDone
authorXiangdong Ji <xiangdong.ji@gmail.com>
Fri, 25 Jun 2021 13:51:22 +0000 (21:51 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 8 Nov 2022 21:50:06 +0000 (21:50 +0000)
commit8befe0e4083a2a61741f03fb4e4cc2814fe27c35
treea448ef9ddcca4cd1be5fa3b5da410a43145a0e66
parent2df6c1abce8cfd3f47ed5eb5a45733d7cbb53b4b
runtime: fix uncondition calls to traceGCSTWDone

startTheWorldWithSema should call traceGCSTWDone only when
the tracing is enabled.

Change-Id: Ibc7181834f68af3923e4b2aee01a57492ab6213e
Reviewed-on: https://go-review.googlesource.com/c/go/+/330835
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/mgc.go