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

Reducing locks in RSA Blinding

XMLWordPrintable

        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.

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

                Created:
                Updated:
                Resolved: