mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8011343: Add new flag for verifying the heap during startup
Perform verification during VM startup under control of new flag and within a VMOperation. Reviewed-by: stefank, jmasa, brutisso
This commit is contained in:
parent
0afa77628c
commit
90d010120f
8 changed files with 29 additions and 21 deletions
|
@ -3446,9 +3446,9 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
}
|
||||
|
||||
assert (Universe::is_fully_initialized(), "not initialized");
|
||||
if (VerifyBeforeGC && VerifyGCStartAt == 0) {
|
||||
Universe::heap()->prepare_for_verify();
|
||||
Universe::verify(); // make sure we're starting with a clean slate
|
||||
if (VerifyDuringStartup) {
|
||||
VM_Verify verify_op(false /* silent */); // make sure we're starting with a clean slate
|
||||
VMThread::execute(&verify_op);
|
||||
}
|
||||
|
||||
EXCEPTION_MARK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue