Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6251

Queue resetNeeded field should be volatile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.9.1, 5.13.2
    • 5.13.3, 5.14.0
    • Broker
    • None

    Description

      The Queue.resetNeeded field should be volatile due to the fact that it is exposed outside of any additional synchronization (via the Queue.isResetNeeded() method). without the volatile modifier, the flag could be set but not recognized by any external code checking it.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            jahlborn james
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: