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

VMTransport uses broken double checked locking

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.11.1
    • Fix Version/s: 5.11.2, 5.12.0
    • Component/s: Broker, Transport
    • Labels:
      None

      Description

      the VMTransport.getMessageQueue() method uses the "double checked locking" idiom to avoid the synchronization overhead if the messageQueue has already been instantiated. however, this idiom is broken unless the reference is marked as volatile.

        Attachments

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              jahlborn james
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: