• Austin Clements's avatar
    runtime: improve comment about non-preemption during GC work · a2f3d73f
    Austin Clements authored
    Currently, gcDrainN is documented saying that it must be run on the
    system stack. In fact, the problem and solution here are somewhat
    subtler. First, it doesn't have to happen on the system stack, it just
    has to be non-stoppable (that is, non-preemptible). Second, this isn't
    specific to gcDrainN (though gcDrainN is perhaps the most surprising
    instance); it's general to anything that uses the gcWork structure.
    
    Move the comment to gcWork and generalize it.
    
    Change-Id: I5277b5abb070e47f8d783bc15a310b379c6adc22
    Reviewed-on: https://go-review.googlesource.com/8247Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    a2f3d73f
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...