mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -2006,11 +2006,12 @@ bool Arguments::check_vm_args_consistency() {
|
|||
// than just disable the lock verification. This will be fixed under
|
||||
// bug 4788986.
|
||||
if (UseConcMarkSweepGC && FLSVerifyAllHeapReferences) {
|
||||
if (VerifyGCStartAt == 0) {
|
||||
if (VerifyDuringStartup) {
|
||||
warning("Heap verification at start-up disabled "
|
||||
"(due to current incompatibility with FLSVerifyAllHeapReferences)");
|
||||
VerifyGCStartAt = 1; // Disable verification at start-up
|
||||
VerifyDuringStartup = false; // Disable verification at start-up
|
||||
}
|
||||
|
||||
if (VerifyBeforeExit) {
|
||||
warning("Heap verification at shutdown disabled "
|
||||
"(due to current incompatibility with FLSVerifyAllHeapReferences)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue