mirror of
https://github.com/golang/go
synced 2024-11-20 00:14:44 -07:00
runtime: fix instrumentation of slice append for race detection
R=golang-dev, iant CC=golang-dev https://golang.org/cl/6819107
This commit is contained in:
parent
ef6806fb13
commit
3f7f030c59
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user