]> Cypherpunks repositories - gostls13.git/commit
runtime: don't disable GC work caching during mark termination
authorAustin Clements <austin@google.com>
Tue, 14 Aug 2018 21:08:27 +0000 (17:08 -0400)
committerAustin Clements <austin@google.com>
Tue, 2 Oct 2018 20:35:23 +0000 (20:35 +0000)
commite25ef35254cc4372256d0c7f4521df3cf3d092bf
treea834b40f36eca0cd800cf4abeff7a5c0636a89c4
parentd398dbdfc38838b63e39cd8ee2c9d30a09b5989f
runtime: don't disable GC work caching during mark termination

Currently, we disable GC work caching during mark termination. This is
no longer necessary with the new mark completion detection because

1. There's no way for any of the GC mark termination helpers to have
any real work queued and,

2. Mark termination has to explicitly flush every P's buffers anyway
in order to flush Ps that didn't run a GC mark termination helper.

Hence, remove the code that disposes gcWork buffers during mark
termination.

Updates #26903. This is a follow-up to eliminating mark 2.

Change-Id: I81f002ee25d5c10f42afd39767774636519007f9
Reviewed-on: https://go-review.googlesource.com/c/134320
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go
src/runtime/mgcmark.go
src/runtime/mwbbuf.go