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

HPROF: CPU sampling can continue during VM shutdown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.3.0
    • tools
    • generic
    • generic


      When using the HPROF cpu=samples option it is possible for the VM to shutdown
      while the CPU sampling thread continues to take samples. This is because the
      JVMPI_EVENT_JVM_SHUT_DOWN event does not cause the sampling thread to
      complete.

      The sampling thread requires to enter/exit both the data_access_lock and
      the hprof_dump_lock. If these monitors are removed during shutdown then
      this can potentially cause the sampling thread to crash.






            dcubed Daniel Daugherty
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: