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

Using tid decorator in Unified Logging may crash VM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b99

      To print the "tid" decorator for the current thread, Unified Logging uses Thread::current(). That will not work for the time before the TLS slot for the thread is initialized and after it is cleaned up.

      More robust would be to just use os::current_thread_id(), which should always work.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: