]
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: