• Austin Clements's avatar
    runtime: factor stoptheworld/starttheworld pattern · a1da255a
    Austin Clements authored
    There are several steps to stopping and starting the world and
    currently they're open-coded in several places. The garbage collector
    is the only thing that needs to stop and start the world in a
    non-trivial pattern. Replace all other uses with calls to higher-level
    functions that implement the entire pattern necessary to stop and
    start the world.
    
    This is a pure refectoring and should not change any code semantics.
    In the following commits, we'll make changes that are easier to do
    with this abstraction in place.
    
    This commit renames the old starttheworld to startTheWorldWithSema.
    This is a slight misnomer right now because the callers release
    worldsema just before calling this. However, a later commit will swap
    these and I don't want to think of another name in the mean time.
    
    Change-Id: I5dc97f87b44fb98963c49c777d7053653974c911
    Reviewed-on: https://go-review.googlesource.com/10154Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    a1da255a
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...