<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV> I was trying to trigger GC(garbage collection) in kaffe. As a part of this I added these lines in gc-mem.c</DIV>
<DIV>(/home/sita/kaffe-1.0.7/kaffe/kaffevm/mem/gc-mem.c)</DIV>
<DIV> </DIV>
<DIV>size_t count;(global variable) /*added by sita*/</DIV>
<DIV> </DIV>
<DIV>gc_heap_malloc(size_t sz)</DIV>
<DIV>{</DIV>
<DIV> </DIV>
<DIV>/*added by sita*/</DIV>
<DIV> </DIV>
<DIV>count = count + sz;</DIV>
<DIV> if (count>100000) /* this means if the size of the objects created in the heap exceeds>*/</DIV>
<DIV> goto nospace;/*>100000, I want to call Garbage collector and free some of them*/</DIV>
<DIV> </DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>gc_heap_free()</DIV>
<DIV>{</DIV>
<DIV>/*added by Sita*/</DIV>
<DIV>printf("I'm triggering GC\n");</DIV>
<DIV> </DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>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:</DIV>
<DIV> </DIV>
<DIV>I'm triggering GC</DIV>
<DIV>I'm triggering GC</DIV>
<DIV>
<DIV>I'm triggering GC</DIV>
<DIV>I'm triggering GC</DIV></DIV>
<DIV>Aborted</DIV>
<DIV>kaffe-bin: jthread.c:1204: jthread_enable_stop: Assertion `currentJThread->stopCounter >= 0' failed<BR></DIV>
<DIV>Could anyone please help with the error . Any help with this is highly appreciated.</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Sita.</DIV><p>
                <hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/50x/*http://promotions.yahoo.com/new_mail/static/efficiency.html">Yahoo! Mail</a> - 50x more storage than other providers!