[kaffe] Bug in garbage collector

pancake sergipop at mx3.redestb.es
Sat Jul 8 09:00:16 PDT 2006


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);
    }
  }
}



More information about the kaffe mailing list