[jboss-jira] [JBoss JIRA] Created: (JBCL-100) GlobalClass Cache is inefficient

Adrian Brock (JIRA) jira-events at lists.jboss.org
Mon Apr 27 10:41:46 EDT 2009


GlobalClass Cache is inefficient
--------------------------------

                 Key: JBCL-100
                 URL: https://jira.jboss.org/jira/browse/JBCL-100
             Project: JBoss ClassLoader
          Issue Type: Task
          Components: ClassLoader
            Reporter: Adrian Brock
            Assignee: Adrian Brock


The globalCacheClass (and the blacklist) is inefficient in the new classloader.

1) It only caches the Loader not the class
2) Because of (1) it goes through the classloader scheduling everytime
3) When the parent is not a ClassLoaderDomain (e.g. it is the system classloader) there is no real caching
of the parent classes when useLoadClassForParent=true which is the default in this case.

For import-all=true, this needs changing to something more like JBoss-4.x where the classes are cached directly
and the parent classes get cached also when the parent is not a ClassLoaderDomain.

With the most important being the cache/blacklist checked before the lock is taken on the classloader.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list