Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-205

GKOP - inconsistent synchronisation of poolKeyList

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • None

    Description

      poolKeyList is an ArrayList - which is not thread-safe.
      Updates are performed whilst holding the keyLock.writeLock.

      However, the list is read in evict() without using the same lock, so there's a potential for evict() to see stale or inconsistent state.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: