]> Cypherpunks repositories - gostls13.git/commit
runtime: improve diagnostics for "scan missed a g"
authorAustin Clements <austin@google.com>
Thu, 17 Nov 2016 15:48:40 +0000 (10:48 -0500)
committerAustin Clements <austin@google.com>
Thu, 17 Nov 2016 19:30:14 +0000 (19:30 +0000)
commit05dc6b26ca337b80f9424aa9b78f4b45f6e44c8d
tree9be6e664e33c0765a22288eede204dc7e9aec2b5
parent7061dc3f6e94dbc369db779ec6799c6f60d3466f
runtime: improve diagnostics for "scan missed a g"

Currently there are no diagnostics for mark root check during marking.
Fix this by printing out the same diagnostics we print during mark
termination.

Also, drop the allglock before throwing. Holding that across a throw
causes a self-deadlock with tracebackothers.

For #16083.

Change-Id: Ib605f3ae0c17e70704b31d8378274cfaa2307dc2
Reviewed-on: https://go-review.googlesource.com/33339
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgcmark.go