Commit fe8ff955 authored by Russ Cox's avatar Russ Cox

add newprocreadylocked for debugger

R=austin
DELTA=10  (9 added, 0 deleted, 1 changed)
OCL=34163
CL=34166
parent 40bcbb30
......@@ -265,6 +265,15 @@ readylocked(G *g)
matchmg();
}
// Same as readylocked but a different symbol so that
// debuggers can set a breakpoint here and catch all
// new goroutines.
static void
newprocreadylocked(G *g)
{
readylocked(g);
}
// Pass g to m for running.
static void
mnextg(M *m, G *g)
......@@ -739,7 +748,7 @@ sys·newproc(int32 siz, byte* fn, byte* arg0)
goidgen++;
newg->goid = goidgen;
readylocked(newg);
newprocreadylocked(newg);
unlock(&sched);
//printf(" goid=%d\n", newg->goid);
......
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