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

Reducing locks in RSA Blinding

    XMLWordPrintable

    Details

      Backports

        Description

        SPECjvm2008 crypto.rsa shows poor scalability with multiple threads. The blinding classes have many synchronized sections that cause performance blocks. WeakHashMap is not thread safe, but using it along with a concurrent queue, which allow multiple blinding objects to be used frees up the code.

        When setting up the queue, overwriting is not a big issue. It may costing a few extra CPU cycles by creating two queues and an extra blinding object. But once that queue is established the queue is much faster not having a synchronize block.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ascarpino Anthony Scarpino
                Reporter:
                ascarpino Anthony Scarpino
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: