aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_linux.go
diff options
context:
space:
mode:
authorRhys Hiltner <rhys@justin.tv>2021-08-13 09:01:13 -0700
committerMichael Pratt <mpratt@google.com>2021-09-27 18:58:41 +0000
commit8d09f7c5178b04bade2859d32d0710233a620d4f (patch)
tree0888aa63801bcbd512f05b898b8998e20577fc33 /src/runtime/os_linux.go
parent5b909580849c611c633c111a15adb40c9c42ec8e (diff)
downloadgo-8d09f7c5178b04bade2859d32d0710233a620d4f.tar.xz
runtime: use per-thread profiler for SetCgoTraceback platforms
Updates #35057 Change-Id: I61d772a2cbfb27540fb70c14676c68593076ca94 Reviewed-on: https://go-review.googlesource.com/c/go/+/342054 Run-TryBot: Rhys Hiltner <rhys@justin.tv> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com> Trust: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/os_linux.go')
-rw-r--r--src/runtime/os_linux.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go
index a4646577cb..06773c2193 100644
--- a/src/runtime/os_linux.go
+++ b/src/runtime/os_linux.go
@@ -529,10 +529,8 @@ func signalM(mp *m, sig int) {
tgkill(getpid(), int(mp.procid), sig)
}
-// go118UseTimerCreateProfiler enables the per-thread CPU profiler. Platforms
-// with support for SetCgoTraceback do some signal handling in assembly; do not
-// enable it for them until the changes to those code paths are in place.
-const go118UseTimerCreateProfiler = GOARCH != "amd64" && GOARCH != "ppc64le"
+// go118UseTimerCreateProfiler enables the per-thread CPU profiler.
+const go118UseTimerCreateProfiler = true
// validSIGPROF compares this signal delivery's code against the signal sources
// that the profiler uses, returning whether the delivery should be processed.