summaryrefslogtreecommitdiff
path: root/libgo/runtime/malloc.goc
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-20 04:58:26 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-20 04:58:26 +0000
commitc7db553fdbfa9476ce04a6807a7ff4d491f52008 (patch)
treebe7f67d3d4b1e832ed43c6bf3fe2047579eb1d9f /libgo/runtime/malloc.goc
parentf7aa5f0b7f0ab60a7c67719896c1939489d179ad (diff)
downloadgcc-c7db553fdbfa9476ce04a6807a7ff4d491f52008.tar.gz
runtime: Ignore stack sizes when deciding when to GC.
Also allocate heap bitmaps bit in page size units and clear context when putting G structures on free list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186607 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/malloc.goc')
-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 97cfabe040a..253fdbe0ccb 100644
--- a/libgo/runtime/malloc.goc
+++ b/libgo/runtime/malloc.goc
@@ -72,7 +72,7 @@ runtime_mallocgc(uintptr size, uint32 flag, int32 dogc, int32 zeroed)
npages = size >> PageShift;
if((size & PageMask) != 0)
npages++;
- s = runtime_MHeap_Alloc(&runtime_mheap, npages, 0, !(flag & FlagNoGC));
+ s = runtime_MHeap_Alloc(&runtime_mheap, npages, 0, 1);
if(s == nil)
runtime_throw("out of memory");
size = npages<<PageShift;