harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene S. Ostrovsky (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4706) [drlvm][thread] assertion fails when interrupting a number of threads waiting on the same monitor
Date Mon, 03 Sep 2007 09:03:19 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Eugene S. Ostrovsky updated HARMONY-4706:

    Attachment: H4706-Workaround-fix.patch

Added patch:

Workaround fix.
Before notifying the condvar checks that the thread is waiting on the same monitor it was
seen waiting on before.

This fix is not complete because there are still possibilities for race condition:
1. thread is waiting on the same monitor but in the other wait() call.
2. thread was already waiting on the other monitor when it was asked for thread->waited_monitor
in interrupter_thread_function()

> [drlvm][thread] assertion fails when interrupting a number of threads waiting on the
same monitor
> -------------------------------------------------------------------------------------------------
>                 Key: HARMONY-4706
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4706
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows x86
>            Reporter: Eugene S. Ostrovsky
>         Attachments: H4706-Regression-test.patch, H4706-Workaround-fix.patch
>   assert (thread->state & TM_THREAD_STATE_INTERRUPTED);
> in hythread_monitor_interrupt_wait()
> in thread_native_fat_monitor.c
> fails on attempt to interrupt several thread waiting on the same monitor.
> This bug causes regression of the following TPTP tests in debug mode:
> org.eclipse.tptp.scenario.thread.ThreadGroupTest\standalone_agg_filter\agg_threadThreadGroupTest_F.xml

> org.eclipse.tptp.scenario.thread.ThreadGroupTest\standalone_agg_full\agg_threadThreadGroupTest.xml

> org.eclipse.tptp.scenario.thread.ThreadGroupTest\standalone_cg_filter\threadThreadGroupTest_F.xml

> org.eclipse.tptp.scenario.thread.ThreadGroupTest\standalone_cg_full\threadThreadGroupTest.xml

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

View raw message