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

GenericObjectPool.evictionPolicy not thread-safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: