Kaffe 0.9.0 alpha/ heap init crash

Uncle George gatgul at voicenet.com
Fri Jun 13 08:46:54 PDT 1997


There is a problem in the linux/alpha ver on the heap/malloc manager for
kaffe. The entries 8:16 of sztable do not get initialised ( goes core
when a 13byte request is made). Changing MIN_OBJECT_SIZE to 16 ( from 8)
seems to do the trick ( did not check all the numbers to see if nothing
is missing )

here are some printf info from gc-mem.c(gc_heap_initialise())
{The last line of the printf displays what went wrong.)


gc_pgsize=8192, sizeof(gc_block)=64,ROUNDUP(1)=8,sizeof(gcFuncs)=16

gc_init:i=1,objsiz=8111,round(obj)=8104,l=8104,MIN_OBJ=8
gc_init:i=2,objsiz=4051,round(obj)=4048,l=8104,MIN_OBJ=8
gc_init:i=4,objsiz=2021,round(obj)=2016,l=4048,MIN_OBJ=8
gc_init:i=8,objsiz=1006,round(obj)=1000,l=2016,MIN_OBJ=8
gc_init:i=16,objsiz=498,round(obj)=496,l=1000,MIN_OBJ=8
gc_init:i=32,objsiz=244,round(obj)=240,l=496,MIN_OBJ=8
gc_init:i=64,objsiz=117,round(obj)=112,l=240,MIN_OBJ=8
gc_init:i=128,objsiz=54,round(obj)=48,l=112,MIN_OBJ=8
gc_init:i=256,objsiz=22,round(obj)=16,l=48,MIN_OBJ=8
gc_init:i=512,objsiz=6,round(obj)=0,l=16,MIN_OBJ=8


ALSO
I am unable to figure out how to init/overcome the requirement of
currentThread being assigned by the time alpha_call_kaffe_function() in
jit.def ( for the alpha ) is first used! Debugging embedded asm is
painfull with the gdb. debugging kaffe on the alpha is painfull -
disassembly gives bogus registers, line info, and pc info dont match.The
debugger came from redhat/alpha/4.1. Kaffe srcs came from a home site.



More information about the kaffe mailing list