< prev index next >

test/compiler/types/correctness/CorrectnessTest.java

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test CorrectnessTest
  26  * @bug 8038418
  27  * @summary Tests correctness of type usage with type profiling and speculations
  28  * @requires vm.flavor == "server"
  29  * @library /testlibrary /test/lib /
  30  * @modules java.base/jdk.internal.misc
  31  *          java.management
  32  *
  33  * @ignore 8066173
  34  * @build compiler.types.correctness.CorrectnessTest
  35  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  36  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  37  * @run main/othervm -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockExperimentalVMOptions
  38  *                   -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  39  *                   -XX:TypeProfileLevel=222 -XX:+UseTypeSpeculation
  40  *                   -XX:CompileCommand=exclude,compiler.types.correctness.execution.*::methodNotToCompile
  41  *                   -XX:CompileCommand=dontinline,compiler.types.correctness.scenarios.Scenario::collectReturnType
  42  *                   compiler.types.correctness.CorrectnessTest RETURN
  43  * @run main/othervm -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockExperimentalVMOptions
  44  *                   -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  45  *                   -XX:TypeProfileLevel=222 -XX:+UseTypeSpeculation
  46  *                   -XX:CompileCommand=exclude,compiler.types.correctness.execution.*::methodNotToCompile
  47  *                   -XX:CompileCommand=dontinline,compiler.types.correctness.scenarios.Scenario::collectReturnType
  48  *                   compiler.types.correctness.CorrectnessTest PARAMETERS
  49  * @run main/othervm -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockExperimentalVMOptions
  50  *                   -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  51  *                   -XX:TypeProfileLevel=222 -XX:+UseTypeSpeculation
  52  *                   -XX:CompileCommand=exclude,compiler.types.correctness.execution.*::methodNotToCompile
  53  *                   -XX:CompileCommand=dontinline,compiler.types.correctness.scenarios.Scenario::collectReturnType
  54  *                   compiler.types.correctness.CorrectnessTest ARGUMENTS




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test CorrectnessTest
  26  * @bug 8038418
  27  * @summary Tests correctness of type usage with type profiling and speculations
  28  * @requires vm.flavor == "server"
  29  * @library /test/lib /
  30  * @modules java.base/jdk.internal.misc
  31  *          java.management
  32  *
  33  * @ignore 8066173
  34  * @build sun.hotspot.WhiteBox
  35  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  36  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  37  * @run main/othervm -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockExperimentalVMOptions
  38  *                   -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  39  *                   -XX:TypeProfileLevel=222 -XX:+UseTypeSpeculation
  40  *                   -XX:CompileCommand=exclude,compiler.types.correctness.execution.*::methodNotToCompile
  41  *                   -XX:CompileCommand=dontinline,compiler.types.correctness.scenarios.Scenario::collectReturnType
  42  *                   compiler.types.correctness.CorrectnessTest RETURN
  43  * @run main/othervm -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockExperimentalVMOptions
  44  *                   -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  45  *                   -XX:TypeProfileLevel=222 -XX:+UseTypeSpeculation
  46  *                   -XX:CompileCommand=exclude,compiler.types.correctness.execution.*::methodNotToCompile
  47  *                   -XX:CompileCommand=dontinline,compiler.types.correctness.scenarios.Scenario::collectReturnType
  48  *                   compiler.types.correctness.CorrectnessTest PARAMETERS
  49  * @run main/othervm -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockExperimentalVMOptions
  50  *                   -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  51  *                   -XX:TypeProfileLevel=222 -XX:+UseTypeSpeculation
  52  *                   -XX:CompileCommand=exclude,compiler.types.correctness.execution.*::methodNotToCompile
  53  *                   -XX:CompileCommand=dontinline,compiler.types.correctness.scenarios.Scenario::collectReturnType
  54  *                   compiler.types.correctness.CorrectnessTest ARGUMENTS


< prev index next >