From commits-return-43091-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Mon Sep 03 09:03:42 2007 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 45340 invoked from network); 3 Sep 2007 09:03:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2007 09:03:42 -0000 Received: (qmail 16704 invoked by uid 500); 3 Sep 2007 09:03:37 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 16687 invoked by uid 500); 3 Sep 2007 09:03:37 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 16678 invoked by uid 99); 3 Sep 2007 09:03:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 02:03:37 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 09:04:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 61B8871420D for ; Mon, 3 Sep 2007 02:03:19 -0700 (PDT) Message-ID: <18521984.1188810199397.JavaMail.jira@brutus> Date: Mon, 3 Sep 2007 02:03:19 -0700 (PDT) From: "Eugene S. Ostrovsky (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4706) [drlvm][thread] assertion fails when interrupting a number of threads waiting on the same monitor In-Reply-To: <9386817.1188557670793.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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: H4706-Workaround-fix.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.