Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 55584 invoked from network); 16 Nov 2006 16:10:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2006 16:10:09 -0000 Received: (qmail 2444 invoked by uid 500); 16 Nov 2006 16:10:16 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 2422 invoked by uid 500); 16 Nov 2006 16:10:15 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 2394 invoked by uid 99); 16 Nov 2006 16:10:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 08:10:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Thu, 16 Nov 2006 08:10:02 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AD7C4714324 for ; Thu, 16 Nov 2006 08:09:42 -0800 (PST) Message-ID: <33400743.1163693382708.JavaMail.jira@brutus> Date: Thu, 16 Nov 2006 08:09:42 -0800 (PST) From: "Salikh Zakirov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1789) [DRLVM] Race condition between Thread.interrupt and Object.wait, Thread.sleep or join In-Reply-To: <21292508.1160424922629.JavaMail.root@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 [ http://issues.apache.org/jira/browse/HARMONY-1789?page=all ] Salikh Zakirov updated HARMONY-1789: ------------------------------------ Attachment: H-1789-updated.patch H-1789-updated.patch is an updated patch that fixes review items 1,3,4,5. The point (2) and unrelated changes in Thread.java deserve separate patches. This patch passed tests (except gc.LOS) on WinXP/ia32/msvc and Linux/ia32 SuSE9/gcc 3.3.3, and compile-tested on Linux/x86_64 > [DRLVM] Race condition between Thread.interrupt and Object.wait, Thread.sleep or join > ------------------------------------------------------------------------------------- > > Key: HARMONY-1789 > URL: http://issues.apache.org/jira/browse/HARMONY-1789 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Nikolay Kuznetsov > Assigned To: Alexey Varlamov > Attachments: H-1789-updated.patch, H-1789.patch, HARMONY1789.java, Test.java > > > According to the specification wait/join or sleep methods should check if thread was interrupted before entering wait. DRLVM hythread implmentation do checks interrupted status(see hythread condition implmentation), however thread may be interrupted just after the status was checked and before entering condition wait. Thus it's required to ensure that waiting state will be reached having interrupted status unchanged. -- 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