]> Cypherpunks repositories - gostls13.git/commit
runtime: don't call setitimer for each thread
authorIan Lance Taylor <iant@golang.org>
Thu, 25 Jun 2020 21:50:10 +0000 (14:50 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 19 Aug 2020 03:49:06 +0000 (03:49 +0000)
commitbd519d0c8734c3e30cb1a8b8217dd9934cd61e25
treed90268bb3f95512ba2039deeea6a2c0b53a9f1de
parent31da1d993a498acefcf3dd5fdfbefa8eec132791
runtime: don't call setitimer for each thread

Previously, on Unix systems, when the profiler was enabled or disabled,
we called setitimer once per thread. With this change we instead call
it once per process.

Change-Id: I90f0189b562e11232816390dc7d55ed154bd836d
Reviewed-on: https://go-review.googlesource.com/c/go/+/240003
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/signal_unix.go