Re: SableVM 1.1.7 *prerelease* available - please test!

Laurent Martelli <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.devel
Message-ID <[email protected]>
>>>>> "Laurent" == Laurent Martelli <[email protected]> writes:

>>>>> "Laurent" == Laurent Martelli <[email protected]> writes:
  Laurent> It looks like jetty's serlvets are still hanging. I'll try
  Laurent> to investigate, but it's not easy without debugging
  Laurent> support.

  Laurent> It turns out jetty is not a problem here. It looks like a
  Laurent> bug in wait()/notify(). I'll do a test case so that the
  Laurent> gurus can try to fix it.

Here's a very simple test case for that bug




-- 
Laurent Martelli
[email protected]                                Java Aspect Components
http://www.aopsys.com/                          http://jac.objectweb.org

_______________________________________________
SableVM-devel mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-devel
Wait.java (text/x-java, 793 B)
public class Wait {
    public static void main(String[] args) throws InterruptedException {
        new Wait().go();
    }
    public synchronized void go() throws InterruptedException {
        new Thread() {
                public void run() {
                    try {
                        Thread.currentThread().sleep(2*1000);
                    } catch(InterruptedException e) {
                        System.out.println("CAUGHT InterruptedException");
                    }
                    System.out.println("NOTIFY");
                    synchronized (Wait.this) {
                        Wait.this.notify();
                    }
                }
            }.start();
        System.out.println("WAIT");
        wait(10*1000);
        System.out.println("DONE");
    }
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.