]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify heap profile flushing
authorAustin Clements <austin@google.com>
Thu, 2 Mar 2017 02:03:20 +0000 (21:03 -0500)
committerAustin Clements <austin@google.com>
Fri, 31 Mar 2017 01:15:01 +0000 (01:15 +0000)
commit1be3e76e7628cae8500c0c1f3aa620638aec351d
tree171143ab0cf8d7a766741e159d3fde90e67c9c21
parenteee85fc5a1071c8c7d8d804e898da6394ffbdec3
runtime: simplify heap profile flushing

Currently the heap profile is flushed by *either* gcSweep in STW mode
or by gcMarkTermination in concurrent mode. Simplify this by making
gcMarkTermination always flush the heap profile and by making gcSweep
do one extra flush (instead of two) in STW mode.

Change-Id: I62147afb2a128e1f3d92ef4bb8144c8a345f53c4
Reviewed-on: https://go-review.googlesource.com/37715
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go