You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrey Pavlenko (JIRA)" <ji...@apache.org> on 2007/01/26 09:54:49 UTC

[jira] Commented: (HARMONY-2187) [classlib][awt] VM loops indefinitely after executing the test.

    [ 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.