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

JNI exit_hook called prior to suspending VM threads

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.0.1
    • hotspot
    • sol-beta
    • generic
    • solaris_7


      On Solaris there is a VM operation enqueued to suspend all threads
      just prior to exit. This ensures that active threads don't access
      unmapped memory during exit().

      However if the JNI Invocation API is used (JNI_CreateJavaVM) with
      an application specified exit_hook the hook routine is called
      without the threads suspended. If the application attempts an
      exit (likely behaviour in the hook routine) then it's possible
      for threads to continue in parallel with the exit routine.

            kbr Kenneth Russell (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: