aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/funcdata.h
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2020-10-30 15:22:52 -0400
committerMichael Pratt <mpratt@google.com>2020-10-30 21:02:17 +0000
commit420c68dd68c648af6642dd7e5cf6dacf9f067f6e (patch)
tree4884a9bca4d4ab0af21544ffbd349fe079293169 /src/runtime/funcdata.h
parent84d7a85089009332756c18e876ec91f96b362ebf (diff)
downloadgo-420c68dd68c648af6642dd7e5cf6dacf9f067f6e.tar.xz
runtime: tighten systemstack in lock assertions
We use systemstack on the locking path to avoid stack splits which could cause locks to be recorded out of order (see comment on lockWithRank). This concern is irrelevant on lock assertions, where we simply need to see if a lock is held and don't care if another is taken in the meantime. Thus we can simply drop these unless we actually need to crash. Updates #40677 Change-Id: I85d730913a59867753ee1ed0386f8c5efda5c432 Reviewed-on: https://go-review.googlesource.com/c/go/+/266718 Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com> Trust: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/funcdata.h')
0 files changed, 0 insertions, 0 deletions