on master help sign in
Merge pull request #2016 from idris-lang/revert-1967-gc_malloc

Revert "GC check allocation of new heap."

commitab3b3db435e3a96b55d895c8315526cc2d35168c authorEdwin Brady <edwin.brady@gmail.com> dateThu 19 Mar 2015, 19:30 (12 years ago) parentdbe0a3c03b7516
1 file changed−8
rts/idris_gc.c−8
rts/idris_gc.c−8
@@ -115,14 +115,6 @@ void idris_gc(VM* vm) {
115115 char* newheap = malloc(vm->heap.size);
116116 char* oldheap = vm->heap.heap;
117117
118− if (newheap == NULL) {
119− fprintf(stderr,
120− "GC ERROR: Unable to allocate new heap. Requested %zd bytes.\n",
121− vm->heap.size);
122−
123− exit(EXIT_FAILURE);
124− }
125−
126118 vm->heap.heap = newheap;
127119#ifdef FORCE_ALIGNMENT
128120 if (((i_int)(vm->heap.heap)&1) == 1) {