Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1907

com.arjuna.ats.internal.arjuna.utils.UuidProcessId.getpid is slow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.17.10, 5.0.0.M5
    • 5.0.0.M4
    • None
    • None

    Description

      the getPid() method uses a synchronized block that is hit on every call, which can causes a lot of unnecessary contention. I'm not sure why the pid cannot just be initialized in the constructor? Or failing that a volatile var + double checked locking would be faster.

      Attachments

        Activity

          People

            nmcl2001 Mark Little
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: