[kaffe] Triggering GC(thread assertion error)

sita tangirala_madhu at yahoo.com
Mon Aug 16 10:22:56 PDT 2004


Hi,
 
  I was trying to trigger GC(garbage collection) in kaffe. As a part of this I added these lines in gc-mem.c
(/home/sita/kaffe-1.0.7/kaffe/kaffevm/mem/gc-mem.c)
 
size_t count;(global variable) /*added by sita*/
 
gc_heap_malloc(size_t sz)
{
 
/*added by sita*/
 
count = count + sz;
 if (count>100000) /* this means if the size of the objects created in the heap exceeds>*/
     goto nospace;/*>100000, I want to call Garbage collector and free some of them*/
 
}
 
gc_heap_free()
{
/*added by Sita*/
printf("I'm triggering GC\n");
 
}
 
When I do the make install with the above code, it installs fine. But when I run a sample program, after a while I get the following error:
 
I'm triggering GC
I'm triggering GC
I'm triggering GC
I'm triggering GC

Aborted
kaffe-bin: jthread.c:1204: jthread_enable_stop: Assertion `currentJThread->stopCounter >= 0' failed

Could anyone please help with the error . Any help with this is highly appreciated.
 
Thanks,
Sita.

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pogo.kaffe.org/pipermail/kaffe/attachments/20040816/ba6e047d/attachment.htm


More information about the kaffe mailing list