hotspot/src/share/vm/runtime/globals.cpp
changeset 9116 9bc44be338d6
parent 7397 5b173b4ca846
child 11166 6e4cf5951f3c
equal deleted inserted replaced
9115:5a28312aa393 9116:9bc44be338d6
    61 
    61 
    62 }
    62 }
    63 
    63 
    64 bool Flag::is_unlocked() const {
    64 bool Flag::is_unlocked() const {
    65   if (strcmp(kind, "{diagnostic}") == 0) {
    65   if (strcmp(kind, "{diagnostic}") == 0) {
       
    66     if (strcmp(name, "EnableInvokeDynamic") == 0 && UnlockExperimentalVMOptions && !UnlockDiagnosticVMOptions) {
       
    67       // transitional logic to allow tests to run until they are changed
       
    68       static int warned;
       
    69       if (++warned == 1)  warning("Use -XX:+UnlockDiagnosticVMOptions before EnableInvokeDynamic flag");
       
    70       return true;
       
    71     }
    66     return UnlockDiagnosticVMOptions;
    72     return UnlockDiagnosticVMOptions;
    67   } else if (strcmp(kind, "{experimental}") == 0 ||
    73   } else if (strcmp(kind, "{experimental}") == 0 ||
    68              strcmp(kind, "{C2 experimental}") == 0) {
    74              strcmp(kind, "{C2 experimental}") == 0) {
    69     return UnlockExperimentalVMOptions;
    75     return UnlockExperimentalVMOptions;
    70   } else {
    76   } else {