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

Using tid decorator in Unified Logging may crash VM

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b99

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: