// needed only to output in traceback
if((gp->status == Gwaiting || gp->status == Gsyscall) && gp->waitsince == 0)
gp->waitsince = work.tstart;
+ // Shrink a stack if not much of it is being used.
+ runtime·shrinkstack(gp);
scanstack(gp);
break;
int64 t0, t1, t2, t3, t4;
uint64 heap0, heap1, obj;
GCStats stats;
- uint32 i;
if(runtime·debug.allocfreetrace)
runtime·tracegc();
sweep.npausesweep++;
}
- // Shrink a stack if not much of it is being used.
- // TODO: do in a parfor
- for(i = 0; i < runtime·allglen; i++)
- runtime·shrinkstack(runtime·allg[i]);
-
runtime·MProf_GC();
g->m->traceback = 0;
}