diff options
| author | Austin Clements <austin@google.com> | 2017-12-01 16:13:08 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2018-05-07 21:38:40 +0000 |
| commit | 44286b17c5ca6673648ba57b4a9d49ab8dffedf6 (patch) | |
| tree | 19e9be51dced2da66cd7b6fb8cdd67aed045a39d /src/cmd/internal/objabi/funcid.go | |
| parent | a8a050819bd4693ea7c6fdc1744038f172c2a439 (diff) | |
| download | go-44286b17c5ca6673648ba57b4a9d49ab8dffedf6.tar.xz | |
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>
Diffstat (limited to 'src/cmd/internal/objabi/funcid.go')
| -rw-r--r-- | src/cmd/internal/objabi/funcid.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/internal/objabi/funcid.go b/src/cmd/internal/objabi/funcid.go index 55f1328ba8..ff75d3d571 100644 --- a/src/cmd/internal/objabi/funcid.go +++ b/src/cmd/internal/objabi/funcid.go @@ -13,6 +13,7 @@ type FuncID uint32 const ( FuncID_normal FuncID = iota // not a special function + FuncID_runtime_main FuncID_goexit FuncID_jmpdefer FuncID_mcall @@ -22,9 +23,6 @@ const ( FuncID_asmcgocall FuncID_sigpanic FuncID_runfinq - FuncID_bgsweep - FuncID_forcegchelper - FuncID_timerproc FuncID_gcBgMarkWorker FuncID_systemstack_switch FuncID_systemstack |
