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

drainRefQueueBounds() puts pressure on pool.size()

XMLWordPrintable

        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)

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

                Created:
                Updated:
                Resolved: