Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1719

DefaultThreadFactory: newThread() names a thread twice

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.4.1, 3.5
    • None
    • None

      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.

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: