From 4039472e56e31a0128a3ec16b0837a8fc3663c76 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Wed, 22 Jul 2009 21:20:04 +0000 Subject: [PATCH] changes --- Robust/src/Runtime/garbage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Robust/src/Runtime/garbage.c b/Robust/src/Runtime/garbage.c index 5736285f..e43dd3cb 100644 --- a/Robust/src/Runtime/garbage.c +++ b/Robust/src/Runtime/garbage.c @@ -26,7 +26,7 @@ #define NUMPTRS 100 -#define INITIALHEAPSIZE 1024*1024*1024L +#define INITIALHEAPSIZE 256*1024*1024L #define GCPOINT(x) ((INTPTR)((x)*0.99)) /* This define takes in how full the heap is initially and returns a new heap size to use */ #define HEAPSIZE(x,y) ((INTPTR)(x+y))*2 @@ -718,7 +718,7 @@ void * mygcmalloc(struct garbagelist * stackptr, int size) { /* Need to allocate base heap */ curr_heapbase=malloc(INITIALHEAPSIZE); if (curr_heapbase==NULL) { - printf("malloc failed\n"); + printf("malloc failed. Garbage collector couldn't get enough memory. Try changing heap size.\n"); exit(-1); } bzero(curr_heapbase, INITIALHEAPSIZE); @@ -728,7 +728,7 @@ void * mygcmalloc(struct garbagelist * stackptr, int size) { to_heapbase=malloc(INITIALHEAPSIZE); if (to_heapbase==NULL) { - printf("malloc failed\n"); + printf("malloc failed. Garbage collector couldn't get enough memory. Try changing heap size.\n"); exit(-1); } to_heaptop=to_heapbase+INITIALHEAPSIZE; -- 2.34.1