Mercurial > hg > truffle
comparison src/share/vm/runtime/globals.cpp @ 2460:ed69575596ac
6981791: remove experimental code for JSR 292
Reviewed-by: twisti
author | jrose |
---|---|
date | Thu, 07 Apr 2011 17:02:30 -0700 |
parents | f95d63e2154a |
children | 763f01599ff4 |
comparison
equal
deleted
inserted
replaced
2459:55973726c600 | 2460:ed69575596ac |
---|---|
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 { |