Skip to content

Commit

Permalink
8257509: Strengthen requirements to call G1HeapVerifier::verify(Verif…
Browse files Browse the repository at this point in the history
…yOption)

Reviewed-by: sjohanss, ayang
  • Loading branch information
Thomas Schatzl committed Dec 4, 2020
1 parent 4a85514 commit ca40267
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/hotspot/share/gc/g1/g1HeapVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,7 @@ bool G1HeapVerifier::should_verify(G1VerifyType type) {
}

void G1HeapVerifier::verify(VerifyOption vo) {
if (!SafepointSynchronize::is_at_safepoint()) {
log_info(gc, verify)("Skipping verification. Not at safepoint.");
}

assert(Thread::current()->is_VM_thread(),
"Expected to be executed serially by the VM thread at this point");
assert_at_safepoint_on_vm_thread();

log_debug(gc, verify)("Roots");
VerifyRootsClosure rootsCl(vo);
Expand Down

1 comment on commit ca40267

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.