equal
deleted
inserted
replaced
394 |
394 |
395 // Update the count of active JNI critical regions |
395 // Update the count of active JNI critical regions |
396 GCLocker::set_jni_lock_count(_current_jni_active_count); |
396 GCLocker::set_jni_lock_count(_current_jni_active_count); |
397 |
397 |
398 if (log_is_enabled(Debug, safepoint)) { |
398 if (log_is_enabled(Debug, safepoint)) { |
399 VM_Operation *op = VMThread::vm_operation(); |
399 log_debug(safepoint)("Entering safepoint region: %s", VMThread::vm_safepoint_description()); |
400 log_debug(safepoint)("Entering safepoint region: %s", |
|
401 (op != NULL) ? op->name() : "no vm operation"); |
|
402 } |
400 } |
403 |
401 |
404 RuntimeService::record_safepoint_synchronized(); |
402 RuntimeService::record_safepoint_synchronized(); |
405 if (PrintSafepointStatistics) { |
403 if (PrintSafepointStatistics) { |
406 update_statistics_on_sync_end(os::javaTimeNanos()); |
404 update_statistics_on_sync_end(os::javaTimeNanos()); |
843 } |
841 } |
844 |
842 |
845 // To debug the long safepoint, specify both DieOnSafepointTimeout & |
843 // To debug the long safepoint, specify both DieOnSafepointTimeout & |
846 // ShowMessageBoxOnError. |
844 // ShowMessageBoxOnError. |
847 if (DieOnSafepointTimeout) { |
845 if (DieOnSafepointTimeout) { |
848 VM_Operation *op = VMThread::vm_operation(); |
|
849 fatal("Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.", |
846 fatal("Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.", |
850 SafepointTimeoutDelay, |
847 SafepointTimeoutDelay, VMThread::vm_safepoint_description()); |
851 op != NULL ? op->name() : "no vm operation"); |
|
852 } |
848 } |
853 } |
849 } |
854 |
850 |
855 |
851 |
856 // ------------------------------------------------------------------------------------------------------- |
852 // ------------------------------------------------------------------------------------------------------- |