]> Cypherpunks repositories - gostls13.git/commit
runtime: rename p racectx field to raceprocctx
authorIan Lance Taylor <iant@golang.org>
Wed, 27 Mar 2019 21:59:10 +0000 (14:59 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 29 Mar 2019 14:17:44 +0000 (14:17 +0000)
commit70ea70ecfda68abbc5b3c7703dc671f75adde645
treeae90f022b5f557b1422ca0a7f8d621229ed6207a
parent154e5abfcdb8ffe193d2af4c8ef590f4d9a27008
runtime: rename p racectx field to raceprocctx

Both g and p had a racectx field, but they held different kinds of values.
The g field held ThreadState values while the p field held Processor values
(to use the names used in the C++ code in the compiler_rt support library).
Rename the p field to raceprocctx to reduce potential confusion.

Change-Id: Iefba0e259d240171e973054c452c3c15bf3f8f8f
Reviewed-on: https://go-review.googlesource.com/c/go/+/169960
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/proc.go
src/runtime/race_amd64.s
src/runtime/race_ppc64le.s
src/runtime/runtime2.go