Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8262929

Define thread name of the DNS resolver’s address listener thread on Windows

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows

      Description

      A DESCRIPTION OF THE PROBLEM :
      The Windows implementation of sun.net.dns.ResolverConfigurationImpl starts a daemon thread in its static initializer block [1].
      Unfortunately, no explicit thread name is defined so the thread name is typically "Thread-<number>".
      Defining no explicit thread name can make ones life harder, for example when monitoring the application or when writing a thread leak detection.
      In this request for enhancement I would like to suggest to define an explicit thread name that makes it easier to tell the address listener thread apart from other threads.
      I would be happy to submit a patch if such a change is welcomed by the project.

      [1]: https://github.com/openjdk/jdk/blob/3b350ad87f182c2800ba17458911de877ae24a6d/src/java.base/windows/classes/sun/net/dns/ResolverConfigurationImpl.java#L198


        Attachments

          Activity

            People

            Assignee:
            aefimov Aleksej Efimov
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: