[jboss-jira] [JBoss JIRA] (JGRP-1719) DefaultThreadFactory: newThread() names a thread twice

Bela Ban (JIRA) jira-events at lists.jboss.org
Thu Oct 17 11:50:02 EDT 2013


     [ https://issues.jboss.org/browse/JGRP-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bela Ban updated JGRP-1719:
---------------------------

    Fix Version/s: 3.4.1

    
> DefaultThreadFactory: newThread() names a thread twice
> ------------------------------------------------------
>
>                 Key: JGRP-1719
>                 URL: https://issues.jboss.org/browse/JGRP-1719
>             Project: JGroups
>          Issue Type: Enhancement
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 3.4.1, 3.5
>
>
> DefaultThreadFactory.newThread() creates a new thread with a name, but then calls renameThread(). 
> This effectively names the thread *twice*, which is means the cost of thread creation is higher than  it should be (naming involves calling {{SecurityManager.checkAccess()}}.
> SOLUTION:
> Prepare the name *before* creating the thread and then pass the name to the constructor.

--
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 jboss-jira mailing list