On Wed, 2009-06-03 at 16:20 +0200, Tomek Grabiec wrote:
> Such loop may occure when exception occures in constructor of
> exception that's beeing created by new_exception().
> 
> Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>

Hmm, this looks wrong to me. The following program

  public class ExceptionTest {
    public static void main(String[] args) {
      throw new FooException();
    }

    public static class FooException extends RuntimeException {
      private static final long serialVersionUID = -1;

      public FooException() {
        throw new OutOfMemoryError();
      }
    }
  }

throws OutOfMemoryError with Sun Hotspot:

  penb...@penberg-laptop:~$ java ExceptionTest
  Exception in thread "main" java.lang.OutOfMemoryError
        at ExceptionTest$FooException.<init>(ExceptionTest.java:10)
        at ExceptionTest.main(ExceptionTest.java:3)

So I wonder if "[PATCH 2/6] jit: make signal_exception() not override
already signalled exception" is broken too?

                        Pekka


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to