• Austin Clements's avatar
    runtime: use acquirem/releasem more widely · ea9859f8
    Austin Clements authored
    We've copy-pasted the pattern of releasem in many places. This CL
    replaces almost everywhere that manipulates g.m.locks and g.preempt
    with calls to acquirem/releasem. There are a few where we do something
    more complicated, like where exitsyscall has to restore the stack
    bound differently depending on the preempt flag, which this CL leaves
    alone.
    
    Change-Id: Ia7a46c261daea6e7802b80e7eb9227499f460433
    Reviewed-on: https://go-review.googlesource.com/c/go/+/170064
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    ea9859f8
proc.go 144 KB