Request for review: 6806649

Christopher Hegarty - Sun Microsystems Ireland Christopher.Hegarty at Sun.COM
Fri Feb 20 21:46:19 UTC 2009

6806649: synchronization bottleneck when constructing Thread subclasses


The global synchronization on Thread.subclassAudits at Thread 
construction time has been discussed as a bottleneck:

The implementation approach for this cache of subclass audits matches 
the once-similar implementations in ObjectInputStream and 
ObjectOutputStream, but since the 5056445 fix in JDKs 5.0u7 and 6, those 
classes were changed to use a ConcurrentHashMap (with weakly referenced 
Class keys) instead-- Thread should probably be changed similarly.


More information about the core-libs-dev mailing list