From 8d09f7c5178b04bade2859d32d0710233a620d4f Mon Sep 17 00:00:00 2001 From: Rhys Hiltner Date: Fri, 13 Aug 2021 09:01:13 -0700 Subject: 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 TryBot-Result: Go Bot Reviewed-by: Michael Pratt Trust: Michael Knyszek --- src/runtime/os_linux.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/runtime/os_linux.go') 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. -- cgit v1.3-5-g9baa