Commit 3f7f030c authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: fix instrumentation of slice append for race detection

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/6819107
parent ef6806fb
......@@ -86,6 +86,8 @@ runtime·appendslice(SliceType *t, Slice x, Slice y, Slice ret)
runtime·racereadpc(x.array + i*t->elem->size, pc);
for(i=x.len; i<x.cap; i++)
runtime·racewritepc(x.array + i*t->elem->size, pc);
for(i=0; i<y.len; i++)
runtime·racereadpc(y.array + i*t->elem->size, pc);
}
if(m > x.cap)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment