aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mwbbuf.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-08-09 15:25:10 -0400
committerAustin Clements <austin@google.com>2018-10-02 20:35:21 +0000
commitd398dbdfc38838b63e39cd8ee2c9d30a09b5989f (patch)
treec2979b2bfeb29725fec47be583075e0a9d9f7f20 /src/runtime/mwbbuf.go
parent9108ae775145a4ecd086f04eb5c45155d8636298 (diff)
downloadgo-d398dbdfc38838b63e39cd8ee2c9d30a09b5989f.tar.xz
runtime: eliminate gcBlackenPromptly mode
Now that there is no mark 2 phase, gcBlackenPromptly is no longer used. Updates #26903. This is a follow-up to eliminating mark 2. Change-Id: Ib9c534f21b36b8416fcf3cab667f186167b827f8 Reviewed-on: https://go-review.googlesource.com/c/134319 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/mwbbuf.go')
-rw-r--r--src/runtime/mwbbuf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/mwbbuf.go b/src/runtime/mwbbuf.go
index 657c2fd2ba..335b10f5b7 100644
--- a/src/runtime/mwbbuf.go
+++ b/src/runtime/mwbbuf.go
@@ -79,7 +79,7 @@ const (
func (b *wbBuf) reset() {
start := uintptr(unsafe.Pointer(&b.buf[0]))
b.next = start
- if gcBlackenPromptly || writeBarrier.cgo {
+ if writeBarrier.cgo {
// Effectively disable the buffer by forcing a flush
// on every barrier.
b.end = uintptr(unsafe.Pointer(&b.buf[wbBufEntryPointers]))
@@ -275,7 +275,7 @@ func wbBufFlush1(_p_ *p) {
// Enqueue the greyed objects.
gcw.putBatch(ptrs[:pos])
- if gcphase == _GCmarktermination || gcBlackenPromptly {
+ if gcphase == _GCmarktermination {
// Ps aren't allowed to cache work during mark
// termination.
gcw.dispose()