]> Cypherpunks repositories - gostls13.git/commit
runtime: add race detector support for new timers
authorIan Lance Taylor <iant@golang.org>
Thu, 11 Apr 2019 21:20:54 +0000 (14:20 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 23 Oct 2019 07:43:18 +0000 (07:43 +0000)
commitab3f1a23b6c29a110423d6fd6bf2b01fa62a6fb2
tree38e2a45179cd9748a8bad2099f32fbe3dc9a2e37
parentc824420d4744bd3e11128c000d88c24859602d46
runtime: add race detector support for new timers

Since the new timers run on g0, which does not have a race context,
we add a race context field to the P, and use that for timer functions.
This works since all timer functions are in the standard library.

Updates #27707

Change-Id: I8a5b727b4ddc8ca6fc60eb6d6f5e9819245e395b
Reviewed-on: https://go-review.googlesource.com/c/go/+/171882
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/proc.go
src/runtime/race.go
src/runtime/race0.go
src/runtime/race_amd64.s
src/runtime/race_arm64.s
src/runtime/race_ppc64le.s
src/runtime/runtime2.go
src/runtime/time.go