Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 11310 invoked from network); 14 May 2007 14:38:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2007 14:38:40 -0000 Received: (qmail 43052 invoked by uid 500); 14 May 2007 14:38:44 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 43023 invoked by uid 500); 14 May 2007 14:38:44 -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 43013 invoked by uid 99); 14 May 2007 14:38:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 07:38:44 -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, 14 May 2007 07:38:37 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CA113714070 for ; Mon, 14 May 2007 07:38:16 -0700 (PDT) Message-ID: <15867769.1179153496824.JavaMail.jira@brutus> Date: Mon, 14 May 2007 07:38:16 -0700 (PDT) From: "weldon washburn (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-3641) [drlvm][netbeans] Thread.interrupt() throws InterruptException in wrong thread In-Reply-To: <31008115.1176403095538.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-3641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] weldon washburn reassigned HARMONY-3641: ---------------------------------------- Assignee: weldon washburn > [drlvm][netbeans] Thread.interrupt() throws InterruptException in wrong thread > ------------------------------------------------------------------------------ > > Key: HARMONY-3641 > URL: https://issues.apache.org/jira/browse/HARMONY-3641 > Project: Harmony > Issue Type: Bug > Components: App-Oriented Bug Reports, DRLVM > Reporter: Vasily Zakharov > Assigned To: weldon washburn > Attachments: Test.java > > > Consider the attached test. It implements a simple manual synchronization mechanism using Object.wait() and Thread.interrupt(), similar to the one used by org.apache.harmony.awt.wtk.Synchronizer (see HARMONY-3601). > On DRL VM this mechanism works incorrectly - it seems like Thread.interrupt() causes InterruptException in wrong thread or in more than one thread at once. Here's the output: > RI: > SUCCESS > Harmony/IBM VM: > SUCCESS > Harmony/DRL VM: > ERROR at Thread[Thread-13,5,main]: Not owner can't unlock resource > ERROR at Thread[Thread-12,5,main]: Not owner can't unlock resource > ERROR at Thread[Thread-11,5,main]: Not owner can't unlock resource > ERROR at Thread[Thread-10,5,main]: Not owner can't unlock resource > Thread[Thread-9,5,main] interrupted while working! > Thread[Thread-8,5,main] interrupted while working! > ERROR at Thread[Thread-8,5,main]: Not owner can't unlock resource > Thread[Thread-7,5,main] interrupted while working! > ERROR at Thread[Thread-7,5,main]: Not owner can't unlock resource > Thread[Thread-6,5,main] interrupted while working! > ERROR at Thread[Thread-6,5,main]: Not owner can't unlock resource > ERROR at Thread[Thread-5,5,main]: Not owner can't unlock resource > FAIL > This issue was filed as a result of investigating the HARMONY-3601 issue with NetBeans. > Great thanks to Andrey Pavlenko for extracting this problem out of AWT. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.