[jbossts-issues] [JBoss JIRA] (JBTM-1907) com.arjuna.ats.internal.arjuna.utils.UuidProcessId.getpid is slow
Mark Little (JIRA)
jira-events at lists.jboss.org
Fri Sep 6 08:10:03 EDT 2013
[ https://issues.jboss.org/browse/JBTM-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on JBTM-1907 stopped by Mark Little.
> 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: http://www.atlassian.com/software/jira
More information about the jbossts-issues
mailing list