summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-14 20:04:32 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-14 20:04:32 +0000
commit53293a4998d9225b50213ea0c57246c5024d7fbf (patch)
treef39b7dff7dbd04fce5453826c29c183f8b730b1f /libgo
parente795d6e1ee8dd07622360c17bccdf047d632b95b (diff)
downloadgcc-53293a4998d9225b50213ea0c57246c5024d7fbf.tar.gz
runtime: Fix GC flag in when allocating memory from cgo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204815 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/malloc.goc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/malloc.goc b/libgo/runtime/malloc.goc
index 72470730471..b8b4a2dc373 100644
--- a/libgo/runtime/malloc.goc
+++ b/libgo/runtime/malloc.goc
@@ -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)) {