equal
deleted
inserted
replaced
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 { |