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

ActiveMQConnection: fix logging for avoid volatile read in case of different loglevel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 5.15.11, 5.16.0
    • JMS client
    • None

    Description

      Just a little improvement for ActiveMQConnection to preventing of call the 'toString()' method in case of different log level, because toString() could create additional objects or could read volatile variable. For example:
      org.apache.activemq.ActiveMQConnection#toString (AtomicBoolean)

      PR: https://github.com/apache/activemq/pull/283

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            SaivR1t Alexander Savonin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m