United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7092825 javax.crypto.Cipher.Transform.patternCache is synchronizedMap and became scalability bottleneck.
JDK-7092825 : javax.crypto.Cipher.Transform.patternCache is synchronizedMap and became scalability bottleneck.

Details
Type:
Enhancement
Submit Date:
2011-09-20
Status:
Closed
Updated Date:
2013-04-22
Project Name:
JDK
Resolved Date:
2012-02-07
Component:
security-libs
OS:
generic
Sub-Component:
java.security
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
javax.crypto.Cipher.Transform.patternCache is synchronizedMap and became scalability bottleneck when Cipher.getInstance() is frequently called.
Should be replaced to ConcurrentHashMap as suggect in the comment to that field.
The problem is important for SPECjvm2008:crypto.rsa and for SPECjvm2011.
Fix is suggested.

                                    

Comments
SUGGESTED FIX

attached webrev.zip contains suggested fix.
                                     
2011-09-20
EVALUATION

Suggested fixes looks reasonable. Will adopt the changes.
                                     
2012-01-11



Hardware and Software, Engineered to Work Together