hotspot/test/runtime/CommandLine/IgnoreUnrecognizedVMOptions.java
changeset 34267 425c08df6f21
parent 33616 1c4a01071852
child 34618 445eb59995bb
equal deleted inserted replaced
34256:8f3bbb94c253 34267:425c08df6f21
   129       runJavaAndCheckExitValue(true, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:VerifyCodeCache", "-version");
   129       runJavaAndCheckExitValue(true, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:VerifyCodeCache", "-version");
   130     }
   130     }
   131 
   131 
   132     /*
   132     /*
   133       #1.7 locked flag:
   133       #1.7 locked flag:
   134                                       diagnostic & locked             experimental & locked             commercial & locked
   134                                       diagnostic & locked             experimental & locked
   135                                       -XX:-UnlockDiagnosticVMOptions  -XX:-UnlockExperimentalVMOptions  -XX:-UnlockCommercialFeatures
   135                                       -XX:-UnlockDiagnosticVMOptions  -XX:-UnlockExperimentalVMOptions
   136                                       -XX:+PrintInlining              -XX:+AlwaysSafeConstructors       -XX:+FlightRecorder
   136                                       -XX:+PrintInlining              -XX:+AlwaysSafeConstructors
   137       -IgnoreUnrecognizedVMOptions               ERR                           ERR                                 ERR
   137       -IgnoreUnrecognizedVMOptions               ERR                           ERR
   138       +IgnoreUnrecognizedVMOptions               ERR                           ERR                                 ERR
   138       +IgnoreUnrecognizedVMOptions               ERR                           ERR
   139     */
   139     */
   140     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:+PrintInlining", "-version");
   140     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:+PrintInlining", "-version");
   141     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:+AlwaysSafeConstructors", "-version");
   141     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:+AlwaysSafeConstructors", "-version");
   142     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockCommercialFeatures", "-XX:+FlightRecorder", "-version");
       
   143     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:+PrintInlining", "-version");
   142     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:+PrintInlining", "-version");
   144     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:+AlwaysSafeConstructors", "-version");
   143     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:+AlwaysSafeConstructors", "-version");
   145     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockCommercialFeatures", "-XX:+FlightRecorder", "-version");
       
   146 
   144 
   147     /*
   145     /*
   148       #1.8 malformed locked flag:
   146       #1.8 malformed locked flag:
   149                                     diagnostic & locked             experimental & locked             commercial & locked
   147                                     diagnostic & locked             experimental & locked
   150                                     -XX:-UnlockDiagnosticVMOptions  -XX:-UnlockExperimentalVMOptions  -XX:-UnlockCommercialFeatures
   148                                     -XX:-UnlockDiagnosticVMOptions  -XX:-UnlockExperimentalVMOptions
   151                                     -XX:PrintInlining               -XX:AlwaysSafeConstructors        -XX:FlightRecorder
   149                                     -XX:PrintInlining               -XX:AlwaysSafeConstructors
   152       -IgnoreUnrecognizedVMOptions               ERR                           ERR                                 ERR
   150       -IgnoreUnrecognizedVMOptions               ERR                           ERR
   153       +IgnoreUnrecognizedVMOptions               ERR                           ERR                                 ERR
   151       +IgnoreUnrecognizedVMOptions               ERR                           ERR
   154     */
   152     */
   155     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version");
   153     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version");
   156     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version");
   154     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version");
   157     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockCommercialFeatures", "-XX:FlightRecorder", "-version");
       
   158     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version");
   155     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version");
   159     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version");
   156     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version");
   160     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockCommercialFeatures", "-XX:FlightRecorder", "-version");
       
   161 
   157 
   162     /*
   158     /*
   163       #1.9 malformed unlocked flag:
   159       #1.9 malformed unlocked flag:
   164                                     diagnostic & locked             experimental & locked             commercial & locked
   160                                     diagnostic & locked             experimental & locked
   165                                     -XX:+UnlockDiagnosticVMOptions  -XX:+UnlockExperimentalVMOptions  -XX:+UnlockCommercialFeatures
   161                                     -XX:+UnlockDiagnosticVMOptions  -XX:+UnlockExperimentalVMOptions
   166                                     -XX:PrintInlining               -XX:AlwaysSafeConstructors        -XX:FlightRecorder
   162                                     -XX:PrintInlining               -XX:AlwaysSafeConstructors
   167       -IgnoreUnrecognizedVMOptions               ERR                           ERR                                 ERR
   163       -IgnoreUnrecognizedVMOptions               ERR                           ERR
   168       +IgnoreUnrecognizedVMOptions               ERR                           ERR                                 ERR
   164       +IgnoreUnrecognizedVMOptions               ERR                           ERR
   169     */
   165     */
   170     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version");
   166     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version");
   171     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version");
   167     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version");
   172     runJavaAndCheckExitValue(false, "-XX:-IgnoreUnrecognizedVMOptions", "-XX:-UnlockCommercialFeatures", "-XX:FlightRecorder", "-version");
       
   173     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version");
   168     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockDiagnosticVMOptions", "-XX:PrintInlining", "-version");
   174     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version");
   169     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockExperimentalVMOptions", "-XX:AlwaysSafeConstructors", "-version");
   175     runJavaAndCheckExitValue(false, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UnlockCommercialFeatures", "-XX:FlightRecorder", "-version");
       
   176   }
   170   }
   177 }
   171 }