src/hotspot/share/gc/g1/g1Arguments.cpp
changeset 50787 5f0266d16543
parent 50624 724ed31f9d05
child 52148 2d9f8845d0ae
equal deleted inserted replaced
50786:f249187b6c3d 50787:5f0266d16543
    52     FREE_C_HEAP_ARRAY(char, type_list);
    52     FREE_C_HEAP_ARRAY(char, type_list);
    53   }
    53   }
    54 }
    54 }
    55 
    55 
    56 void G1Arguments::parse_verification_type(const char* type) {
    56 void G1Arguments::parse_verification_type(const char* type) {
    57   if (strcmp(type, "young-only") == 0) {
    57   if (strcmp(type, "young-normal") == 0) {
    58     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyYoungOnly);
    58     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyYoungNormal);
    59   } else if (strcmp(type, "initial-mark") == 0) {
    59   } else if (strcmp(type, "concurrent-start") == 0) {
    60     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyInitialMark);
    60     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyConcurrentStart);
    61   } else if (strcmp(type, "mixed") == 0) {
    61   } else if (strcmp(type, "mixed") == 0) {
    62     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyMixed);
    62     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyMixed);
    63   } else if (strcmp(type, "remark") == 0) {
    63   } else if (strcmp(type, "remark") == 0) {
    64     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyRemark);
    64     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyRemark);
    65   } else if (strcmp(type, "cleanup") == 0) {
    65   } else if (strcmp(type, "cleanup") == 0) {
    66     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyCleanup);
    66     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyCleanup);
    67   } else if (strcmp(type, "full") == 0) {
    67   } else if (strcmp(type, "full") == 0) {
    68     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyFull);
    68     G1HeapVerifier::enable_verification_type(G1HeapVerifier::G1VerifyFull);
    69   } else {
    69   } else {
    70     log_warning(gc, verify)("VerifyGCType: '%s' is unknown. Available types are: "
    70     log_warning(gc, verify)("VerifyGCType: '%s' is unknown. Available types are: "
    71                             "young-only, initial-mark, mixed, remark, cleanup and full", type);
    71                             "young-normal, concurrent-start, mixed, remark, cleanup and full", type);
    72   }
    72   }
    73 }
    73 }
    74 
    74 
    75 void G1Arguments::initialize() {
    75 void G1Arguments::initialize() {
    76   GCArguments::initialize();
    76   GCArguments::initialize();