]> Cypherpunks repositories - gostls13.git/commit
runtime: fix unclosed GCSweepStart trace event
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 29 Oct 2021 17:58:42 +0000 (17:58 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 29 Oct 2021 18:34:24 +0000 (18:34 +0000)
commit903f313d8b6e85c031fc5918273ff4800fa9f952
tree541ba3d9aebbae60891651e0371b8bb053a4c7c6
parent413672fc84e0ced7531cdc7cf0e5db32061e8194
runtime: fix unclosed GCSweepStart trace event

CL 333389 erroneously moved traceGCSweepDone inside the sl.valid block
that it introduced in mcentral.cacheSpan, when it should have left it
outside that scope, because the trace event is created unconditionally
at the top of the method.

Fixes #49231.

Change-Id: If719c05063d4f4d330a320da6dc00d1e9d8102e4
Reviewed-on: https://go-review.googlesource.com/c/go/+/359775
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/runtime/mcentral.go