harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Aliev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1951) [drlvm] Simple thread test results different on DRLVM and Sun RI
Date Tue, 21 Nov 2006 15:55:03 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1951?page=all ]

Artem Aliev updated HARMONY-1951:

    Attachment: fix_1951.patch

Thread.interrupt() incorrectly call monitor notifyAll(). So the toStop thread receives InterruptedException,
toWait thread is notified by mistake and begin to spin under  a lock.  The main thread hangs
on the lock.

I attach a fix, that introduce the real wait queue, and allows to notify only interrupted
The code is migrated from  build/patches/win/APR/locks/win32/thread_cond.c.
I can not fully test it because build.sh test does not work on current drlvm.

The fix is pretty big so please review.


> [drlvm] Simple thread test results different on DRLVM and Sun RI
> ----------------------------------------------------------------
>                 Key: HARMONY-1951
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1951
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Unbuntu 6, Sun RI 1.5.0_8
>            Reporter: Geir Magnusson Jr
>         Assigned To: weldon washburn
>            Priority: Minor
>         Attachments: fix_1951.patch, Test2.java, Test3.java
> I'm not sure how critical this is - I just wanted to note it sometwhere.  The attached
program produces two slightly different outputs when run on DRLVM vs Sun RI.

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