]> Cypherpunks repositories - gostls13.git/commit
runtime: fix newextram PC passed to race detector
authorDmitry Vyukov <dvyukov@google.com>
Sat, 24 Sep 2016 14:59:23 +0000 (16:59 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Sun, 25 Sep 2016 12:15:40 +0000 (12:15 +0000)
commitc14050646f621db5f54c1a300b80c65f99fbd03b
treecfbe931f0940850b8d45097ff5942c8f53a0dedc
parent893edc9b3fceead9c31151ce46fb871ea8c225b1
runtime: fix newextram PC passed to race detector

PC passed to racegostart is expected to be a return PC
of the go statement. Race runtime will subtract 1 from the PC
before symbolization. Passing start PC of a function is wrong.
Add sys.PCQuantum to the function start PC.

Update #17190

Change-Id: Ia504c49e79af84ed4ea360c2aea472b370ea8bf5
Reviewed-on: https://go-review.googlesource.com/29712
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/proc.go