harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2187) [classlib][awt] VM loops indefinitely after executing the test.
Date Fri, 26 Jan 2007 08:54:49 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467760
] 

Andrey Pavlenko commented on HARMONY-2187:
------------------------------------------

This issue is caused by the VM shutdown module which does not terminate daemon threads.
Below is a simple reproducer of this issue:

public class Test {

    public static void main(String[] args) {
        final Thread t = new Thread() {
            public void run() {
                while (true);
            }
        };

        t.setDaemon(true);
        t.start();
    }
}

Pavel, could you please change the component to VM?

> [classlib][awt] VM loops indefinitely after executing the test.
> ---------------------------------------------------------------
>
>                 Key: HARMONY-2187
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2187
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Pervov
>         Attachments: TestLoadBCP.java
>
>
> The attached test illustrates the situation.
> The test loads ALL classes it finds in sun.boot.class.path jars.
> Two threads loops indefinitely after executing the test
>     at org/apache/harmony/awt/nativebridge/windows/Win32.GetMessageW(JJII)I
>     at org/apache/harmony/awt/nativebridge/windows/Win32.GetMessageW(Lorg/apache/harmony/awt/nativebridge/windows/Win32$MSG;JII)I
>     at org/apache/harmony/awt/datatransfer/windows/WinDTK.runEventLoop()V
>     at org/apache/harmony/awt/datatransfer/DataTransferThread.run()V
>     at java/lang/Thread.runImpl()V

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message