mirror of
https://github.com/golang/go
synced 2024-11-21 14:14:40 -07:00
runtime: reset parfor stats
Otherwise they sum up between GCs. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6535048
This commit is contained in:
parent
c993ac11bc
commit
d151fb9e20
@ -196,6 +196,11 @@ exit:
|
||||
runtime·xadd64(&desc->nprocyield, me->nprocyield);
|
||||
runtime·xadd64(&desc->nosyield, me->nosyield);
|
||||
runtime·xadd64(&desc->nsleep, me->nsleep);
|
||||
me->nsteal = 0;
|
||||
me->nstealcnt = 0;
|
||||
me->nprocyield = 0;
|
||||
me->nosyield = 0;
|
||||
me->nsleep = 0;
|
||||
}
|
||||
|
||||
// For testing from Go
|
||||
|
Loading…
Reference in New Issue
Block a user