Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 21774 invoked from network); 12 Oct 2006 05:02:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Oct 2006 05:02:19 -0000 Received: (qmail 44061 invoked by uid 500); 12 Oct 2006 05:02:18 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 44027 invoked by uid 500); 12 Oct 2006 05:02:18 -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 44013 invoked by uid 99); 12 Oct 2006 05:02:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 22:02:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 22:02:18 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2F0D17142DF for ; Wed, 11 Oct 2006 22:01:36 -0700 (PDT) Message-ID: <29840759.1160629296190.JavaMail.jira@brutus> Date: Wed, 11 Oct 2006 22:01:36 -0700 (PDT) From: "Alexey Varlamov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-1833) [DRLVM] deadlock during finalization In-Reply-To: <12947644.1160628936705.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1833?page=comments#action_12441617 ] Alexey Varlamov commented on HARMONY-1833: ------------------------------------------ Java stack of Thread 1 [junit] [0x80a9f58] 0x538b6a18(m): java/lang/FinalizerThread.startFinalization(Z)V [junit] [0x80a9f58] 0x40b0fdc5(n): java/lang/VMClassRegistry.getSystemPackages(I)[[Ljava/lang/String; [junit] [0x80a9f58] 0x41162c57(m): java/lang/ClassLoader$BootstrapLoader.updatePackages()V [junit] [0x80a9f58] 0x41162a7b(m): java/lang/ClassLoader$BootstrapLoader.getPackage(Ljava/lang/String;)Ljava/lang/Package; [junit] [0x80a9f58] 0x41162812(m): java/lang/ClassLoader.getPackage(Ljava/lang/String;)Ljava/lang/Package; [junit] [0x80a9f58] 0x411508e4(m): java/net/URLClassLoader.findClassImpl([Ljava/net/URL;Ljava/lang/String;)Ljava/lang/Class; [junit] [0x80a9f58] 0x4114ea08(m): java/net/URLClassLoader$4.run()Ljava/lang/Class; [junit] [0x80a9f58] 0x4114e961(m): java/net/URLClassLoader$4.run()Ljava/lang/Object; [junit] [0x80a9f58] 0x410e6b69(m): java/security/AccessController.doPrivilegedImpl(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; [junit] [0x80a9f58] 0x4114e8cb(m): java/security/AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; [junit] [0x80a9f58] 0x4114e637(m): java/net/URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class; [junit] [0x80a9f58] 0x41147b69(m): java/lang/ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; [junit] [0x80a9f58] 0x411479d5(m): java/net/URLClassLoader$SubURLClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; [junit] [0x80a9f58] 0x4114780a(m): java/lang/ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; [junit] [0x80a9f58] 0x411394c1(m): java/lang/Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; [junit] [0x80a9f58] 0x538b67ef(m): javax/naming/spi/NamingManager$1.run()Ljava/lang/Class; [junit] [0x80a9f58] 0x538b6701(m): javax/naming/spi/NamingManager$1.run()Ljava/lang/Object; [junit] [0x80a9f58] 0x410e6b69(m): java/security/AccessController.doPrivilegedImpl(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; > [DRLVM] deadlock during finalization > ------------------------------------ > > Key: HARMONY-1833 > URL: http://issues.apache.org/jira/browse/HARMONY-1833 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: SLES 9 32-bit SP2; CPU 2xXeon x64 > gcc 3.3.3 drlvm debug build > Reporter: Alexey Varlamov > > The classlib tests hang sporadically, usually in JNDI module when running all classlib unit tests (single runs of JNDI alone always ok). > Investigation shows that there are deadlocks happening between main thread (MT) and finalizer thread (FT): > 1) MT performs classloading, it grabs ClassLoader::_lock; > 2) GC happens, FinalizerThread.startFinalization() is called, FT activates; > 3) FT invokes some finalize() method, compilation starts and grabs g_compileLock; > 4) FT waits for ClassLoader::_lock to allocate code_chunk_info; > 5) MT proceeds to compilation of FinalizerThread.spawnBalanceThreads() and waits for g_compileLock; -- 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