]
Mark Little reassigned JBTM-1907:
---------------------------------
Assignee: Mark Little (was: Tom Jenkinson)
com.arjuna.ats.internal.arjuna.utils.UuidProcessId.getpid is slow
-----------------------------------------------------------------
Key: JBTM-1907
URL:
https://issues.jboss.org/browse/JBTM-1907
Project: JBoss Transaction Manager
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.0.0.M4
Reporter: Stuart Douglas
Assignee: Mark Little
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: