Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 55694 invoked from network); 26 Sep 2005 02:16:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2005 02:16:19 -0000 Received: (qmail 2987 invoked by uid 500); 26 Sep 2005 02:16:17 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 2653 invoked by uid 500); 26 Sep 2005 02:16:14 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 2080 invoked by uid 99); 26 Sep 2005 02:16:12 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Sep 2005 19:16:10 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id C682D123 for ; Mon, 26 Sep 2005 04:15:49 +0200 (CEST) Message-ID: <937538589.1127700949810.JavaMail.jira@ajax.apache.org> Date: Mon, 26 Sep 2005 04:15:49 +0200 (CEST) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS-2232) Mappings in TypeDesc can't be GC'ed In-Reply-To: <292321346.1127605888277.JavaMail.jira@ajax.apache.org> 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/AXIS-2232?page=all ] Davanum Srinivas resolved AXIS-2232: ------------------------------------ Resolution: Fixed Applied patch thanks, dims > Mappings in TypeDesc can't be GC'ed > ----------------------------------- > > Key: AXIS-2232 > URL: http://issues.apache.org/jira/browse/AXIS-2232 > Project: Apache Axis > Type: Improvement > Components: Deployment / Registries > Versions: current (nightly) > Reporter: David Blevins > Attachments: TypeDesc.java.patch > > The TypeDesc class holds a static Hashtable of class -> TypeDesc mappings. This is fine if Axis is loaded into the only the same classloader as the app itself (like when it's embedded in a webapp), but if axis is loaded into the parent classloader of all webapps, the hashtable will prevent those children classloaders from being garbage collected as it holds references to classes in those children classloaders. > This patch 1) creates a Hashtable of class->TypeDesc for *each classloader* and 2) stores those hashtables in a WeakHashMap so they can be garbage collected when the child classloaders are garbage collected. -- 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