Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 88442 invoked from network); 16 Sep 2007 09:51:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Sep 2007 09:51:53 -0000 Received: (qmail 29447 invoked by uid 500); 16 Sep 2007 09:51:46 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 29427 invoked by uid 500); 16 Sep 2007 09:51:46 -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 29417 invoked by uid 99); 16 Sep 2007 09:51:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2007 02:51:45 -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; Sun, 16 Sep 2007 09:51:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6CABD714187 for ; Sun, 16 Sep 2007 02:51:32 -0700 (PDT) Message-ID: <10761370.1189936292442.JavaMail.jira@brutus> Date: Sun, 16 Sep 2007 02:51:32 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-4634) [classlib][swing]SplitPane triggers the deadlock in AbstractDocument$ReadWriteLock In-Reply-To: <1414794.1187175450562.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-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko closed HARMONY-4634. ------------------------------------ > [classlib][swing]SplitPane triggers the deadlock in AbstractDocument$ReadWriteLock > ---------------------------------------------------------------------------------- > > Key: HARMONY-4634 > URL: https://issues.apache.org/jira/browse/HARMONY-4634 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Win32 > Reporter: Alexey Petrenko > Assignee: Alexey Petrenko > Attachments: HARMONY-4634-ReadWriteLock.patch > > > We need a better patch for HARMONY-4624. > Here is a description from HARMONY-4624: > Dead lock possibilities are seen in the synchronized metnods of AbstractDocument$ReadWriteLock. > public final synchronized void readLock() { > final Thread thread = Thread.currentThread(); > if (writer != thread) { > while (writerCount > 0) { > try { wait(); } > catch (final InterruptedException e) { } > } > } > readers.add(thread); > } > Waiting in synchronized methods (requires another synchronized method to wakeup it) likely just dies there. > Multithreaded SplitPane application triggers the possibility. One thread can operate at the texts of the LeftComponent, thus in a critical section after setting writercount(writeLock()). The other thread can operate at the rightComponent, then call the readLock() of LeftComponent via layout managment and just waits there. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.