]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate blocking GC work drains
authorAustin Clements <austin@google.com>
Thu, 16 Aug 2018 16:25:38 +0000 (12:25 -0400)
committerAustin Clements <austin@google.com>
Tue, 2 Oct 2018 20:35:34 +0000 (20:35 +0000)
commit457c8f4fe9e4d45f97d0a3f3c4a80789c6616fd6
treeb5869505da8c2e5b9b6c9ec745a07495e3797de1
parent143b13ae82d81020dfa6db40818bef5a1f701c3f
runtime: eliminate blocking GC work drains

Now work.helperDrainBlock is always false, so we can remove it and
code paths that only ran when it was true. That means we no longer use
the gcDrainBlock mode of gcDrain, so we can eliminate that. That means
we no longer use gcWork.get, so we can eliminate that. That means we
no longer use getfull, so we can eliminate that.

Updates #26903. This is a follow-up to unifying STW GC and concurrent GC.

Change-Id: I8dbcf8ce24861df0a6149e0b7c5cd0eadb5c13f6
Reviewed-on: https://go-review.googlesource.com/c/134782
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/mgcwork.go