8016735: Remove superfluous EnableInvokeDynamic warning from UnlockDiagnosticVMOptions check
authormgronlun
Thu, 20 Jun 2013 11:53:51 +0200
changeset 18433 bcb2e8b5f81e
parent 18432 037577e626b1
child 18434 2932166737d5
child 18436 84fceaff7926
child 18491 dd63ba6b0ee4
8016735: Remove superfluous EnableInvokeDynamic warning from UnlockDiagnosticVMOptions check Reviewed-by: sla, dholmes
hotspot/src/share/vm/runtime/globals.cpp
--- a/hotspot/src/share/vm/runtime/globals.cpp	Wed Jun 19 20:51:39 2013 -0700
+++ b/hotspot/src/share/vm/runtime/globals.cpp	Thu Jun 20 11:53:51 2013 +0200
@@ -73,12 +73,6 @@
       strcmp(kind, "{C2 diagnostic}") == 0 ||
       strcmp(kind, "{ARCH diagnostic}") == 0 ||
       strcmp(kind, "{Shark diagnostic}") == 0) {
-    if (strcmp(name, "EnableInvokeDynamic") == 0 && UnlockExperimentalVMOptions && !UnlockDiagnosticVMOptions) {
-      // transitional logic to allow tests to run until they are changed
-      static int warned;
-      if (++warned == 1)  warning("Use -XX:+UnlockDiagnosticVMOptions before EnableInvokeDynamic flag");
-      return true;
-    }
     return UnlockDiagnosticVMOptions;
   } else if (strcmp(kind, "{experimental}") == 0 ||
              strcmp(kind, "{C2 experimental}") == 0 ||