HPROF: CPU sampling can continue during VM shutdown

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.3.0
    • Component/s: 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.






            Assignee:
            Daniel Daugherty
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: