Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 45786 invoked from network); 17 Nov 2006 14:36:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2006 14:36:00 -0000 Received: (qmail 29806 invoked by uid 500); 17 Nov 2006 14:36:10 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 29775 invoked by uid 500); 17 Nov 2006 14:36:09 -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 29764 invoked by uid 99); 17 Nov 2006 14:36:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2006 06:36:09 -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; Fri, 17 Nov 2006 06:35:59 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EA200714324 for ; Fri, 17 Nov 2006 06:35:38 -0800 (PST) Message-ID: <22955404.1163774138956.JavaMail.jira@brutus> Date: Fri, 17 Nov 2006 06:35:38 -0800 (PST) From: "Alexey Varlamov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Resolved: (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 ] Alexey Varlamov resolved HARMONY-1789. -------------------------------------- Resolution: Fixed Applied H-1789-update.patch + HARMONY-2217 at r476148. I suggest to close this issue, remained subtask can be resolved on their own. > [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