diff --git a/src/pkg/runtime/parfor.c b/src/pkg/runtime/parfor.c index 7ebbaac4cd..36dd65852f 100644 --- a/src/pkg/runtime/parfor.c +++ b/src/pkg/runtime/parfor.c @@ -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