]> Cypherpunks repositories - gostls13.git/commit
runtime: replace system goroutine whitelist with symbol test
authorAustin Clements <austin@google.com>
Fri, 1 Dec 2017 21:13:08 +0000 (16:13 -0500)
committerAustin Clements <austin@google.com>
Mon, 7 May 2018 21:38:40 +0000 (21:38 +0000)
commit44286b17c5ca6673648ba57b4a9d49ab8dffedf6
tree19e9be51dced2da66cd7b6fb8cdd67aed045a39d
parenta8a050819bd4693ea7c6fdc1744038f172c2a439
runtime: replace system goroutine whitelist with symbol test

Currently isSystemGoroutine has a hard-coded list of known entry
points into system goroutines. This list is annoying to maintain. For
example, it's missing the ensureSigM goroutine.

Replace it with a check that simply looks for any goroutine with
runtime function as its entry point, with a few exceptions. This also
matches the definition recently added to the trace viewer (CL 81315).

Change-Id: Iaed723d4a6e8c2ffb7c0c48fbac1688b00b30f01
Reviewed-on: https://go-review.googlesource.com/81655
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/internal/objabi/funcid.go
src/cmd/link/internal/ld/pcln.go
src/cmd/trace/trace.go
src/runtime/symtab.go
src/runtime/traceback.go