8016735: Remove superfluous EnableInvokeDynamic warning from UnlockDiagnosticVMOptions check

Thu, 20 Jun 2013 11:53:51 +0200

author
mgronlun
date
Thu, 20 Jun 2013 11:53:51 +0200
changeset 5301
b3cd8b58b798
parent 5300
b9f4c4ec0f50
child 5302
9ba41a4a71ff
child 5304
bb6c7f2f10fd
child 5337
de2d15ce3d4a

8016735: Remove superfluous EnableInvokeDynamic warning from UnlockDiagnosticVMOptions check
Reviewed-by: sla, dholmes

src/share/vm/runtime/globals.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/runtime/globals.cpp	Wed Jun 19 20:51:39 2013 -0700
     1.2 +++ b/src/share/vm/runtime/globals.cpp	Thu Jun 20 11:53:51 2013 +0200
     1.3 @@ -73,12 +73,6 @@
     1.4        strcmp(kind, "{C2 diagnostic}") == 0 ||
     1.5        strcmp(kind, "{ARCH diagnostic}") == 0 ||
     1.6        strcmp(kind, "{Shark diagnostic}") == 0) {
     1.7 -    if (strcmp(name, "EnableInvokeDynamic") == 0 && UnlockExperimentalVMOptions && !UnlockDiagnosticVMOptions) {
     1.8 -      // transitional logic to allow tests to run until they are changed
     1.9 -      static int warned;
    1.10 -      if (++warned == 1)  warning("Use -XX:+UnlockDiagnosticVMOptions before EnableInvokeDynamic flag");
    1.11 -      return true;
    1.12 -    }
    1.13      return UnlockDiagnosticVMOptions;
    1.14    } else if (strcmp(kind, "{experimental}") == 0 ||
    1.15               strcmp(kind, "{C2 experimental}") == 0 ||

mercurial