harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1823) [drlvm][unit] VM throws RuntimeException in AWT-EventDispatchThread
Date Thu, 12 Oct 2006 12:05:37 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1823?page=all ]

Nikolay Kuznetsov updated HARMONY-1823:
---------------------------------------

    Attachment: interrupt_fix.patch

Attached patch fixes this issue. The problem was reproduced by HARMONY-1383. The problem here
is that wait, join and sleep handles interrupts the way different to park, which does not
throw interrupted exception.

In ideal world all the waiting should be based on park method and thread should carry interrupted
status till wait, sleep, join or interrupted method call. That's probably why the interrupted
status was restored in HARMONY-1383.

In DRLVM park based on the same condition primitive as wait, sleep, or join, since it's only
one method I believe that we should treat park as special case and restore interrupted status
as needed.

Note tests attached to HARMONY-1383 should still pass of 'cause.


> [drlvm][unit] VM throws RuntimeException in AWT-EventDispatchThread
> -------------------------------------------------------------------
>
>                 Key: HARMONY-1823
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1823
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Maxim Makarov
>         Attachments: interrupt_fix.patch, SingleInterruptTest.java
>
>
> Problems:
> VM throws RuntimeException in AWT-EventDispatchThread with JET and OPT on all platforms
> Code for reproducing:
> import java.awt.*;
> public class Test {
>  public static void main(String argv[]) {
>      new TestA().testTest();
>  }
>  public void testTest() {
>        new ScrollPane();
>        new Button(); 
>  }
> } 
> Output on Harmony:
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or
its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r454551, (Oct 11 2006), Windows/ia32/msvc 1310, release build
> http://incubator.apache.org/harmony
> java.lang.RuntimeException: Shutdown thread was interrupted while stopping
>         at org.apache.harmony.awt.wtk.ShutdownThread.shutdown(ShutdownThread.java:72)
>         at org.apache.harmony.awt.wtk.ShutdownWatchdog.shutdown(ShutdownWatchdog.java:81)
>         at org.apache.harmony.awt.wtk.ShutdownWatchdog.checkShutdown(ShutdownWatchdog.java:61)
>         at org.apache.harmony.awt.wtk.ShutdownWatchdog.setAwtQueueEmpty(ShutdownWatchdog.java:42)
>         at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:82)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
> Uncaught exception in AWT-EventDispatchThread:
> java.lang.RuntimeException: Shutdown thread was interrupted while stopping
>         at org.apache.harmony.awt.wtk.ShutdownThread.shutdown(ShutdownThread.java:72)
>         at org.apache.harmony.awt.wtk.ShutdownWatchdog.shutdown(ShutdownWatchdog.java:81)
>         at org.apache.harmony.awt.wtk.ShutdownWatchdog.forceShutdown(ShutdownWatchdog.java:52)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:53)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message