]> Cypherpunks repositories - gostls13.git/commit
runtime: remove debugCachedWork
authorMichael Pratt <mpratt@google.com>
Wed, 14 Oct 2020 21:18:27 +0000 (17:18 -0400)
committerMichael Pratt <mpratt@google.com>
Thu, 15 Oct 2020 15:55:19 +0000 (15:55 +0000)
commit2517f4946b42b8deedb864c884f1b41311d45850
treefcd02112f74fc6f5fd816c989a0a7641cd0b10df
parentaa161e799df7e1eba99d2be10271e76b6f758142
runtime: remove debugCachedWork

debugCachedWork and all of its dependent fields and code were added to
aid in debugging issue #27993. Now that the source of the problem is
known and mitigated (via the extra work check after STW in gcMarkDone),
these extra checks are no longer required and simply make the code more
difficult to follow.

Remove it all.

Updates #27993

Change-Id: I594beedd5ca61733ba9cc9eaad8f80ea92df1a0d
Reviewed-on: https://go-review.googlesource.com/c/go/+/262350
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/compile/internal/gc/inl_test.go
src/runtime/mgc.go
src/runtime/mgcwork.go
src/runtime/mwbbuf.go
src/runtime/panic.go