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

drainRefQueueBounds() puts pressure on pool.size()

    XMLWordPrintable

Details

    Backports

      Description

        In SessionKeyRef, during the draining of the queue, the pool.size() check in release() shows to drain performance in PAE analysis. Might be better to store the size ourselves using AtomicInteger.

        ConcurrentLinkedDeque.size() is called by drainRefQueueBounded()
        – drainRefQueueBounded() is called every time inside constructor of SessionKeyRef
        – Iterate through the LinkedDeque, which is O(n)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: