Using tid decorator in Unified Logging may crash VM

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: