diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-22 02:17:45 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-22 02:17:45 +0400 |
| commit | dfdd1ba028b0adc78f858850a255bcd57aabef86 (patch) | |
| tree | 1bb2dd5fe477d93410ac6eef1b27c634dbbde8b0 /src/pkg/runtime/stack.c | |
| parent | 87fdb8fb9ab8de4e008fa7c1561b16e3df01223a (diff) | |
| download | go-dfdd1ba028b0adc78f858850a255bcd57aabef86.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/stack.c')
| -rw-r--r-- | src/pkg/runtime/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c index 32d6fd4650..dd823705da 100644 --- a/src/pkg/runtime/stack.c +++ b/src/pkg/runtime/stack.c @@ -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 |
