• Austin Clements's avatar
    runtime: disallow preemption during startTheWorld · 9c44a41d
    Austin Clements authored
    Currently, startTheWorld clears preemptoff for the current M before
    starting the world. A few callers increment m.locks around
    startTheWorld, presumably to prevent preemption any time during
    starting the world. This is almost certainly pointless (none of the
    other callers do this), but there's no harm in making startTheWorld
    keep preemption disabled until it's all done, which definitely lets us
    drop these m.locks manipulations.
    
    Change-Id: I8a93658abd0c72276c9bafa3d2c7848a65b4691a
    Reviewed-on: https://go-review.googlesource.com/10155Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    9c44a41d
heapdump.go 18.1 KB