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

[REDO] Event NativeLibraryLoad breaks invariant by taking a stacktrace when thread is in state _thread_in_native

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 22
    • None
    • hotspot
    • None
    • jfr
    • b23

      The original problem was introduced with:

      JDK-8313251 - Add NativeLibraryLoad event

      The first attempt at resolution:

      JDK-8315220 - Event NativeLibraryLoad breaks invariant by taking a stacktrace when thread is in state _thread_in_native

      was reverted:

      JDK-8315930 - Revert "8315220: Event NativeLibraryLoad breaks invariant by taking a stacktrace when thread is in state _thread_in_native"

      because it ran into:

      JDK-8315892 - NativeLibraryLoadEvent dtr fails with "assert(false) failed: Possible safepoint reached by thread that does not allow it"

      The reason for JDK-8315892 was that the thread loading the zip library, in thread state native, was the owner of the Zip_lock mutex. This prevented it from transitioning to thread_in_vm.

      The Zip_lock mutex was removed as part of:

      JDK-8317951 - Refactor loading of zip library to help resolve JDK-8315220

      Therefore, it is time to redo the original JDK-8315220, now under this issue, JDK-8319206.

            mgronlun Markus Grönlund
            mgronlun Markus Grönlund
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: