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

DefaultThreadFactory: newThread() names a thread twice

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: