can't grow heap in kaffe0.92!!!
Daniel Veillard
veillard at rufus.w3.org
Sat Nov 15 17:46:42 PST 1997
>does kaffe 0.92 recognize the -mx and -ms options?
>kaffe/i86/linux gets an out of memory exception after
>growing to only 16megs. i'm invoking
>
> kaffe -ms 32m -mx 96m Memory Test
>
>any ideas? has anyone seen this
>problem? nothing in the archives?
Yes, kaffe-0.9.2 is brocken w.r.t. handling of ms and mx
options. Apply the patch below, also available at
ftp://rufus.w3.org/pub/kaffe/patches/0.9.2/patch.memory
Daniel
--
Daniel.Veillard at w3.org | MIT/LCS Room NE43-344 | Today's Bookmarks :
Tel : +1.617.253.5884 | 545 Technology Square | Linux, WWW, Java,
Fax : +1.617.258.5999 | Cambridge, MA 02139 USA | badminton, Kaffe,
http://www.w3.org/People/W3Cpeople.html#Veillard | HTTP-NG and Amaya.
---------------------------------------------------------------------
Index: kaffe-0.9.2/kaffe/kaffevm/gc-mem.c
===================================================================
RCS file: /sources/cvsroot/opera/kaffe-0.9.2/kaffe/kaffevm/gc-mem.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -p -r1.1 -r1.2
*** gc-mem.c 1997/10/08 23:13:22 1.1
--- gc-mem.c 1997/10/29 02:19:27 1.2
*************** static gc_block* gc_objecthash[GC_OBJECT
*** 43,50 ****
static size_t max_small_object_size;
size_t gc_heap_total;
! size_t gc_heap_allocation_size;
! size_t gc_heap_limit;
size_t gc_pgsize;
extern struct Hjava_lang_Thread* garbageman;
--- 43,50 ----
static size_t max_small_object_size;
size_t gc_heap_total;
! size_t gc_heap_allocation_size = ALLOC_HEAPSIZE;
! size_t gc_heap_limit = MAX_HEAPSIZE;
size_t gc_pgsize;
extern struct Hjava_lang_Thread* garbageman;
*************** gc_heap_initialise(void)
*** 66,73 ****
int t;
gc_pgsize = getpagesize();
- gc_heap_allocation_size = ALLOC_HEAPSIZE;
- gc_heap_limit = MAX_HEAPSIZE;
#define OBJSIZE(NR) \
((gc_pgsize - sizeof(gc_block) - ROUNDUPALIGN(1) - (NR *
(1+sizeof(gcFuncs*)))) / NR)
-----------------------------------------------------------------------
More information about the kaffe
mailing list