Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 29088 invoked from network); 18 Jan 2007 11:05:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2007 11:05:54 -0000 Received: (qmail 60452 invoked by uid 500); 18 Jan 2007 11:06:00 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 60149 invoked by uid 500); 18 Jan 2007 11:05:58 -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 59950 invoked by uid 99); 18 Jan 2007 11:05:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jan 2007 03:05:57 -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, 18 Jan 2007 03:05:50 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3025D7141F2 for ; Thu, 18 Jan 2007 03:05:30 -0800 (PST) Message-ID: <15527571.1169118330194.JavaMail.jira@brutus> Date: Thu, 18 Jan 2007 03:05:30 -0800 (PST) From: "Sian January (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2973) [classlib] [luni] Concerns about synchronization in java.net.InetAddress In-Reply-To: <5824478.1168511007499.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-2973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465722 ] Sian January commented on HARMONY-2973: --------------------------------------- I'm not sure about 1. Surely if the notifying threads have finished before entering the main one then either reached will be true or addrCount will be 0 so we won't wait at all? Also should the '&&' be an '||' on 897? > [classlib] [luni] Concerns about synchronization in java.net.InetAddress > ------------------------------------------------------------------------ > > Key: HARMONY-2973 > URL: https://issues.apache.org/jira/browse/HARMONY-2973 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Sian January > Attachments: H-2973.patch > > > FindBugs raised two concerns about synchronization in InetAddress.isReachableByMultiThread(...) - an unconditional wait on line 888, and also the fact that the same wait is not in a loop. Looking more closely at this method I am concerned about the synchronization because it looks like it would be possible for no notify calls to occur after that wait, which would mean the wait would continue indefinitely. It would be great if someone could take a look at this as I'm not entirely sure myself what the correct solution is. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira