]> Cypherpunks repositories - gostls13.git/commit
runtime: use register ABI for race detector functions
authorCherry Zhang <cherryyz@google.com>
Tue, 6 Apr 2021 00:26:11 +0000 (20:26 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 6 Apr 2021 21:43:19 +0000 (21:43 +0000)
commit0a510478b0294744894385c6c6f5ded6829b6524
tree8bd69e327a06ed97869cbe01a3eda9cc5ae53317
parent7da8490cbb8659e3a9727b15e42def6e961e8fdf
runtime: use register ABI for race detector functions

runtime.raceread/racewrite/racewriterange are functions that are
called from compiler instrumented code, follwoing ABIInternal.
They are assembly functions defined as ABIInternal in the runtime,
in order to avoid wrappers because they need to get the caller's
PC. This CL makes them to use the actual internal ABI.

Change-Id: Id91d73cf257f7b11a858958d85c38c4aa904d9c3
Reviewed-on: https://go-review.googlesource.com/c/go/+/307812
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/race_amd64.s