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

VMTransport uses broken double checked locking

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.11.1
    • 5.11.2, 5.12.0
    • Broker, Transport
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: