Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 88628 invoked from network); 19 Aug 2010 14:41:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 14:41:01 -0000 Received: (qmail 59615 invoked by uid 500); 19 Aug 2010 14:41:01 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 58978 invoked by uid 500); 19 Aug 2010 14:40:59 -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 58836 invoked by uid 99); 19 Aug 2010 14:40:59 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 14:40:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 14:40:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7JEeJVh003297 for ; Thu, 19 Aug 2010 14:40:19 GMT Message-ID: <6410287.447301282228819516.JavaMail.jira@thor> Date: Thu, 19 Aug 2010 10:40:19 -0400 (EDT) From: "Werner Froidevaux (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6628) Deadlock in getProxyClass() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Deadlock in getProxyClass() --------------------------- Key: HARMONY-6628 URL: https://issues.apache.org/jira/browse/HARMONY-6628 Project: Harmony Issue Type: Bug Components: JDK Affects Versions: 5.0M14 Environment: harmony-5.0-jdk-946978/ harmony-6.0-jdk-946981/ Linux-32 Eclipse 3.5 Reporter: Werner Froidevaux Priority: Blocker In certain situations the method java.lang.reflect.Proxy.getProxyClass() produces a deadlock. This seems always to be the case when getProxyClass() is called recursively by defineClassImpl(). public static Class getProxyClass( ClassLoader loader, Class[] interfaces ) throws IllegalArgumentException { ... synchronized (loaderCache) { ... newClass = defineClassImpl(loader, ...); ... } } When the native method recursively invokes getClassImpl() (via newProxyInstance()) the VM is locked at synchronized (loaderCache). Because I only have one thread (Main) a deadlock must never occur. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.