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-1592) Thread interrupt and Thread.stop may not work properly if thread is waiting
Date Tue, 17 Oct 2006 11:24:37 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1592?page=all ]

Nikolay Kuznetsov updated HARMONY-1592:
---------------------------------------

    Attachment: Test2.java

Attached tests examines interrupt behavior and hangs both on windows and linux. The old test
for some reason hangs on windows only, the difference in behavior for windows and linux is
that we use signals in linux stop implementation and probably that's why the first test passes
on linux. Thus the patch is still valid, and I still whould like to apply it:).

In short, our interrupt scheme does not allow us notifying particular thread and thus we have
to notify all of them.

> 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, Test2.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

        

Mime
View raw message