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

GenericObjectPool.evictionPolicy not thread-safe

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      The instance field GenericObjectPool.evictionPolicy is not updated in a thread-safe way.

      It either needs to be made volatile, or the getters/setters could synch. on the evictionLock.
      The latter is probably more sensible, as the field is used whilst holding that lock.

      [Note: AFAICT, that is currently the only unsafe field in GOP]

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: