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] Commented: (HARMONY-1592) Thread interrupt and Thread.stop may not work properly if thread is waiting
Date Tue, 10 Oct 2006 15:14:21 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1592?page=comments#action_12441159 ] 
Nikolay Kuznetsov commented on HARMONY-1592:

how it works for you? If it prints that Thread was stopped and hangs then it anothe problem,
if main thread finishes earlier than child thread vm just hangs on exit, try the following
test whic prints that sleep is finished and hangs on Linux:

public class Test {
    public static void main(String[] args) {
        new Thread() {
            public void run() {
                try {
                } catch (InterruptedException e) {
                System.out.println("Sleep finished");

> Thread interrupt and Thread.stop may not work properly if thread is waiting
> ---------------------------------------------------------------------------
>                 Key: HARMONY-1592
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1592
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Nikolay Kuznetsov
>         Assigned To: Geir Magnusson Jr
>         Attachments: stop_interrupt_waited.patch, Test.java
> Thread.interrupt and Thread.stop may not wake up a thread if it's waiting. The problem
here is that both hythread_stop and hythread_interrupt do
> hythread_notify instead of hythread_notify_all on current condition the thread is waiting
on, while this notification may not affect target thread.

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


View raw message