runtime: Fix GC flag in when allocating memory from cgo.

From-SVN: r204815
This commit is contained in:
Ian Lance Taylor 2013-11-14 20:04:32 +00:00
parent 18f429e29c
commit 7d608db296

View File

@ -75,7 +75,7 @@ runtime_mallocgc(uintptr size, uintptr typ, uint32 flag)
runtime_exitsyscall();
m = runtime_m();
incallback = true;
flag |= FlagNoGC;
flag |= FlagNoInvokeGC;
}
if(runtime_gcwaiting() && g != m->g0 && m->locks == 0 && !(flag & FlagNoInvokeGC)) {