• Austin Clements's avatar
    runtime: allow GC drain whenever write barrier is enabled · f5e67e53
    Austin Clements authored
    Currently we hand-code a set of phases when draining is allowed.
    However, this set of phases is conservative. The critical invariant is
    simply that the write barrier must be enabled if we're draining.
    
    Shortly we're going to enable mutator assists during the scan phase,
    which means we may drain during the scan phase. In preparation, this
    commit generalizes these assertions to check the fundamental condition
    that the write barrier is enabled, rather than checking that we're in
    any particular phase.
    
    Change-Id: I0e1bec1ca823d4a697a0831ec4c50f5dd3f2a893
    Reviewed-on: https://go-review.googlesource.com/12673Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    f5e67e53
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...