]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: add a more stable isSystemGoroutine mode
authorAustin Clements <austin@google.com>
Mon, 13 Aug 2018 20:08:03 +0000 (16:08 -0400)
committerAustin Clements <austin@google.com>
Tue, 2 Oct 2018 20:35:28 +0000 (20:35 +0000)
commit29b21ec4c371061a99dfaac356e54b3c62c5853f
treebb3ad71ff934461c715b0c9924bd411c816c55b8
parent198440cc3d3453d349fbc7894a5d91dd7b16e6a0
runtime: add a more stable isSystemGoroutine mode

Currently, isSystemGoroutine varies on whether it considers the
finalizer goroutine a user goroutine or a system goroutine. For the
next CL, we're going to want to always consider the finalier goroutine
a user goroutine, so add a flag that indicates that.

Updates #26903. This is preparation for unifying STW GC and concurrent
GC.

Change-Id: Iafc92e519c13d9f8d879332cb5f0d12164104c33
Reviewed-on: https://go-review.googlesource.com/c/134778
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/heapdump.go
src/runtime/mprof.go
src/runtime/proc.go
src/runtime/traceback.go