runtime: do not trigger GC on g0

GC acquires worldsema, which is a goroutine-level semaphore
which parks goroutines. g0 can not be parked.
Fixes #6193.

R=khr, khr
CC=golang-dev
https://golang.org/cl/12880045
This commit is contained in:
Dmitriy Vyukov 2013-08-22 02:17:45 +04:00
parent 87fdb8fb9a
commit dfdd1ba028
2 changed files with 9 additions and 22 deletions

View file

@ -105,7 +105,7 @@ runtime·stackalloc(uint32 n)
m->stackinuse++;
return v;
}
return runtime·mallocgc(n, 0, FlagNoProfiling|FlagNoGC|FlagNoZero);
return runtime·mallocgc(n, 0, FlagNoProfiling|FlagNoGC|FlagNoZero|FlagNoInvokeGC);
}
void