mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8257509: Strengthen requirements to call G1HeapVerifier::verify(VerifyOption)
Reviewed-by: sjohanss, ayang
This commit is contained in:
parent
4a85514963
commit
ca402671af
1 changed files with 1 additions and 6 deletions
|
@ -471,12 +471,7 @@ bool G1HeapVerifier::should_verify(G1VerifyType type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void G1HeapVerifier::verify(VerifyOption vo) {
|
void G1HeapVerifier::verify(VerifyOption vo) {
|
||||||
if (!SafepointSynchronize::is_at_safepoint()) {
|
assert_at_safepoint_on_vm_thread();
|
||||||
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");
|
|
||||||
|
|
||||||
log_debug(gc, verify)("Roots");
|
log_debug(gc, verify)("Roots");
|
||||||
VerifyRootsClosure rootsCl(vo);
|
VerifyRootsClosure rootsCl(vo);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue