< prev index next >

src/hotspot/share/gc/g1/g1HeapVerifier.cpp

Print this page
rev 48019 : 8191821: Finer granularity for GC verification
Reviewed-by:
rev 48020 : [mq]: 8191821-rev-sang-poonam
rev 48021 : [mq]: 8191821-rev-tsch

@@ -375,22 +375,25 @@
     }
   }
 };
 
 void G1HeapVerifier::parse_verification_type(const char* type) {
-  if (strcmp(type, "young") == 0) {
-    enable_verification_type(G1VerifyYoung);
+  if (strcmp(type, "young-only") == 0) {
+    enable_verification_type(G1VerifyYoungOnly);
+  } else if (strcmp(type, "initial-mark") == 0) {
+    enable_verification_type(G1VerifyInitialMark);
   } else if (strcmp(type, "mixed") == 0) {
     enable_verification_type(G1VerifyMixed);
   } else if (strcmp(type, "remark") == 0) {
     enable_verification_type(G1VerifyRemark);
   } else if (strcmp(type, "cleanup") == 0) {
     enable_verification_type(G1VerifyCleanup);
   } else if (strcmp(type, "full") == 0) {
     enable_verification_type(G1VerifyFull);
   } else {
-    log_warning(gc, verify)("VerifyGCType: '%s' is unknown. Available types are: young, mixed, remark, cleanup and full", type);
+    log_warning(gc, verify)("VerifyGCType: '%s' is unknown. Available types are: "
+                            "young-only, initial-mark, mixed, remark, cleanup and full", type);
   }
 }
 
 void G1HeapVerifier::enable_verification_type(G1VerifyType type) {
   // First enable will clear _enabled_verification_types.
< prev index next >