mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8152955: Many safepoints of "no vm operation" kind
Reviewed-by: dholmes, rkennke, shade
This commit is contained in:
parent
ad4bc13f9f
commit
3ca4b6b01b
3 changed files with 37 additions and 17 deletions
|
@ -396,9 +396,7 @@ void SafepointSynchronize::begin() {
|
|||
GCLocker::set_jni_lock_count(_current_jni_active_count);
|
||||
|
||||
if (log_is_enabled(Debug, safepoint)) {
|
||||
VM_Operation *op = VMThread::vm_operation();
|
||||
log_debug(safepoint)("Entering safepoint region: %s",
|
||||
(op != NULL) ? op->name() : "no vm operation");
|
||||
log_debug(safepoint)("Entering safepoint region: %s", VMThread::vm_safepoint_description());
|
||||
}
|
||||
|
||||
RuntimeService::record_safepoint_synchronized();
|
||||
|
@ -845,10 +843,8 @@ void SafepointSynchronize::print_safepoint_timeout(SafepointTimeoutReason reason
|
|||
// To debug the long safepoint, specify both DieOnSafepointTimeout &
|
||||
// ShowMessageBoxOnError.
|
||||
if (DieOnSafepointTimeout) {
|
||||
VM_Operation *op = VMThread::vm_operation();
|
||||
fatal("Safepoint sync time longer than " INTX_FORMAT "ms detected when executing %s.",
|
||||
SafepointTimeoutDelay,
|
||||
op != NULL ? op->name() : "no vm operation");
|
||||
SafepointTimeoutDelay, VMThread::vm_safepoint_description());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue