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.
- duplicates
-
JDK-4701980 HPROF: -Xrunhprof option crashes and restarts S1AS app server
- Resolved
- relates to
-
JDK-4636055 HPROF: JVM crashes during Shutdown when cpu=times with many threads, finalizatio
- Closed