runtime: Correct flag (FlagNoGC => FlagNoInvokeGC).

From-SVN: r204617
This commit is contained in:
Ian Lance Taylor 2013-11-09 16:23:00 +00:00
parent 5275f3e546
commit 86dedeba36

View File

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