Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7092825

javax.crypto.Cipher.Transform.patternCache is synchronizedMap and became scalability bottleneck.

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 8
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b25
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        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.

          Activity

          Hide
          skuksenko Sergey Kuksenko added a comment -
          BT2:SUGGESTED FIX

          attached webrev.zip contains suggested fix.
          Show
          skuksenko Sergey Kuksenko added a comment - BT2:SUGGESTED FIX attached webrev.zip contains suggested fix.
          Hide
          valeriep Valerie Peng added a comment -
          BT2:EVALUATION

          Suggested fixes looks reasonable. Will adopt the changes.
          Show
          valeriep Valerie Peng added a comment - BT2:EVALUATION Suggested fixes looks reasonable. Will adopt the changes.

            People

            • Assignee:
              valeriep Valerie Peng
              Reporter:
              skuksenko Sergey Kuksenko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: