]> Cypherpunks repositories - gostls13.git/commit
runtime: pass gcWork to markroot
authorAustin Clements <austin@google.com>
Mon, 23 Nov 2015 23:44:03 +0000 (18:44 -0500)
committerAustin Clements <austin@google.com>
Thu, 25 Feb 2016 23:37:25 +0000 (23:37 +0000)
commit7b229001e710f48134a51b2f5abebda4b35d9de4
treed517a682d78f9846cece556d69be06686f629396
parent98130b39f50f51ac966201461b96a20f923c7d64
runtime: pass gcWork to markroot

Currently markroot uses a gcWork on the stack and disposes of it
immediately after marking one root. This used to be necessary because
markroot was called from the depths of parfor, but now that we call it
directly and have ready access to a gcWork at the call site, pass the
gcWork in, use it directly in markroot, and share it across calls to
markroot from the same P.

Change-Id: Id7c3b811bfb944153760e01873c07c8d18909be1
Reviewed-on: https://go-review.googlesource.com/19635
Reviewed-by: Rick Hudson <rlh@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
src/runtime/mgcmark.go