7 * published by the Free Software Foundation.
8 *
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
26 * @bug 8136421
27 * @requires vm.jvmci
28 * @library / /test/lib
29 * ../common/patches
30 * @modules java.base/jdk.internal.misc
31 * java.base/jdk.internal.org.objectweb.asm
32 * java.base/jdk.internal.org.objectweb.asm.tree
33 * jdk.internal.vm.ci/jdk.vm.ci.hotspot
34 * jdk.internal.vm.ci/jdk.vm.ci.code
35 * @build jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
36 * sun.hotspot.WhiteBox
37 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
38 * sun.hotspot.WhiteBox$WhiteBoxPermission
39 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
40 * -XX:+WhiteBoxAPI -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -Xbatch
41 * -Djvmci.Compiler=null
42 * compiler.jvmci.compilerToVM.IsMatureVsReprofileTest
43 */
44
45 package compiler.jvmci.compilerToVM;
46
47 import compiler.jvmci.common.CTVMUtilities;
48 import compiler.jvmci.common.testcases.SimpleClass;
49 import jdk.vm.ci.hotspot.CompilerToVMHelper;
50 import jdk.test.lib.Asserts;
51 import sun.hotspot.WhiteBox;
52 import compiler.whitebox.CompilerWhiteBoxTest;
53 import java.lang.reflect.Executable;
54 import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod;
55 import jdk.test.lib.Platform;
56
57 public class IsMatureVsReprofileTest {
58 private static final WhiteBox WB = WhiteBox.getWhiteBox();
59 private static final boolean TIERED = WB.getBooleanVMFlag("TieredCompilation");
60 private static final boolean IS_XCOMP = Platform.isComp();
61
|
7 * published by the Free Software Foundation.
8 *
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
26 * @bug 8136421
27 * @requires vm.jvmci & (vm.opt.TieredStopAtLevel == null | vm.opt.TieredStopAtLevel == 4)
28 * @library / /test/lib
29 * ../common/patches
30 * @modules java.base/jdk.internal.misc
31 * java.base/jdk.internal.org.objectweb.asm
32 * java.base/jdk.internal.org.objectweb.asm.tree
33 * jdk.internal.vm.ci/jdk.vm.ci.hotspot
34 * jdk.internal.vm.ci/jdk.vm.ci.code
35 * @build jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
36 * sun.hotspot.WhiteBox
37 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
38 * sun.hotspot.WhiteBox$WhiteBoxPermission
39 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
40 * -XX:+WhiteBoxAPI -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -Xbatch
41 * compiler.jvmci.compilerToVM.IsMatureVsReprofileTest
42 */
43
44 package compiler.jvmci.compilerToVM;
45
46 import compiler.jvmci.common.CTVMUtilities;
47 import compiler.jvmci.common.testcases.SimpleClass;
48 import jdk.vm.ci.hotspot.CompilerToVMHelper;
49 import jdk.test.lib.Asserts;
50 import sun.hotspot.WhiteBox;
51 import compiler.whitebox.CompilerWhiteBoxTest;
52 import java.lang.reflect.Executable;
53 import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod;
54 import jdk.test.lib.Platform;
55
56 public class IsMatureVsReprofileTest {
57 private static final WhiteBox WB = WhiteBox.getWhiteBox();
58 private static final boolean TIERED = WB.getBooleanVMFlag("TieredCompilation");
59 private static final boolean IS_XCOMP = Platform.isComp();
60
|