[jboss-jira] [JBoss JIRA] Created: (JBCL-20) Don't use CopyOnWriteArraySet for caching and blacklisting
Adrian Brock (JIRA)
jira-events at lists.jboss.org
Thu Jul 24 05:50:45 EDT 2008
Don't use CopyOnWriteArraySet for caching and blacklisting
----------------------------------------------------------
Key: JBCL-20
URL: https://jira.jboss.org/jira/browse/JBCL-20
Project: JBoss ClassLoader
Issue Type: Task
Components: ClassLoader
Affects Versions: JBossCL.2.0.0.Beta12
Reporter: Adrian Brock
Assignee: Adrian Brock
Fix For: JBossCL.2.0.0.CR1
According to the javadoc CopyOnWriteArraySet is not designed for large sets.
I'm seeing slow calls to blacklist.contains(className) in JBossAS
Instead use a ConcurrentHashMap (effectively only the key side).
--
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