Duplicate :
|
|
Relates :
|
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.
|