Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 681330 Details for
Bug 899291
Performance risk: Inefficient synchronization in ENCFactory
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
syncmap.diff
syncmap.diff (text/x-patch), 1.59 KB, created by
Radoslav Husar
on 2010-08-03 16:53:17 UTC
(
hide
)
Description:
syncmap.diff
Filename:
MIME Type:
Creator:
Radoslav Husar
Created:
2010-08-03 16:53:17 UTC
Size:
1.59 KB
patch
obsolete
>Index: jnpserver/src/main/java/org/jboss/naming/ENCFactory.java >=================================================================== >--- jnpserver/src/main/java/org/jboss/naming/ENCFactory.java (revision 107349) >+++ jnpserver/src/main/java/org/jboss/naming/ENCFactory.java (working copy) >@@ -23,8 +23,10 @@ > > import java.security.AccessController; > import java.security.PrivilegedAction; >+import java.util.Collections; > import java.util.Hashtable; > import java.util.List; >+import java.util.Map; > import java.util.WeakHashMap; > import java.util.concurrent.ConcurrentHashMap; > import javax.naming.Context; >@@ -50,7 +52,7 @@ > // Constants ----------------------------------------------------- > > // Attributes ---------------------------------------------------- >- private static WeakHashMap classloaderKeyedEncs = new WeakHashMap(); >+ private static Map classloaderKeyedEncs = Collections.synchronizedMap(new WeakHashMap()); > private static ClassLoader topLoader; > private static ThreadLocalStack<Object> encIdStack = new ThreadLocalStack<Object>(); > private static ConcurrentHashMap<Object, Context> encById = new ConcurrentHashMap<Object, Context>(); >@@ -111,8 +113,6 @@ > } > // Get naming for this component > ClassLoader ctxClassLoader = GetTCLAction.getContextClassLoader(); >- synchronized (classloaderKeyedEncs) >- { > Context compCtx = (Context) classloaderKeyedEncs.get(ctxClassLoader); > > /* If this is the first time we see ctxClassLoader first check to see >@@ -135,7 +135,6 @@ > } > } > return compCtx; >- } > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 899291
:
681328
|
681329
| 681330