[kaffe] Bug in garbage collector
Guilhem Lavaux
guilhem at kaffe.org
Sat Jul 8 12:14:42 PDT 2006
Hi pancake,
What version of kaffe are you using ? CVS ? I am getting a right OOM
error when trying to call System.out.println. This is "normal" because
the object o may not yet be relaxed even if you put 'o = null'. What
sort of assertion failure do you get ?
I would expect something thrown by the just-in-time because it is still
not completely rock solid relative to OOM.
Regards,
Guilhem.
pancake wrote:
> afaik kaffe and other VMs are vulnerable to this code. But kaffe just prints an assert before die. Could be possible to fix this stuff on the garbage collector? or just exit before dump?
>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4944300
>
> --------
>
> public class HardJVMCrash {
>
> static Object o = null;
>
> public static void main(String[] args) {
> (new MemApplet()).doit();
> }
>
> void doit () {
> while (true) try {
> Object[] oarr = {o}; o = oarr;
> } catch (Throwable t) {
> o = null;
> System.out.println("Wurfgeschoss: "+t);
> }
> }
> }
>
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>
More information about the kaffe
mailing list