equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
27 * @bug 8031320 |
27 * @bug 8031320 |
28 * @summary Verify that if we use RTMDeopt, then deoptimization |
28 * @summary Verify that if we use RTMDeopt, then deoptimization |
29 * caused by reason other then rtm_state_change will reset |
29 * caused by reason other then rtm_state_change will reset |
30 * method's RTM state. And if we don't use RTMDeopt, then |
30 * method's RTM state. And if we don't use RTMDeopt, then |
31 * RTM state remain the same after such deoptimization. |
31 * RTM state remain the same after such deoptimization. |
32 * @library /testlibrary /test/lib / |
32 * @library /test/lib / |
33 * @modules java.base/jdk.internal.misc |
33 * @modules java.base/jdk.internal.misc |
34 * java.management |
34 * java.management |
35 * @build compiler.rtm.locking.TestRTMAfterNonRTMDeopt |
35 * @build sun.hotspot.WhiteBox |
36 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
36 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
37 * sun.hotspot.WhiteBox$WhiteBoxPermission |
37 * sun.hotspot.WhiteBox$WhiteBoxPermission |
38 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
38 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
39 * -XX:+WhiteBoxAPI |
39 * -XX:+WhiteBoxAPI |
40 * compiler.rtm.locking.TestRTMAfterNonRTMDeopt |
40 * compiler.rtm.locking.TestRTMAfterNonRTMDeopt |
48 import compiler.testlibrary.rtm.RTMTestBase; |
48 import compiler.testlibrary.rtm.RTMTestBase; |
49 import compiler.testlibrary.rtm.predicate.SupportedCPU; |
49 import compiler.testlibrary.rtm.predicate.SupportedCPU; |
50 import compiler.testlibrary.rtm.predicate.SupportedVM; |
50 import compiler.testlibrary.rtm.predicate.SupportedVM; |
51 import jdk.internal.misc.Unsafe; |
51 import jdk.internal.misc.Unsafe; |
52 import jdk.test.lib.Asserts; |
52 import jdk.test.lib.Asserts; |
53 import jdk.test.lib.OutputAnalyzer; |
53 import jdk.test.lib.process.OutputAnalyzer; |
54 import jdk.test.lib.Utils; |
54 import jdk.test.lib.Utils; |
55 import jdk.test.lib.cli.CommandLineOptionTest; |
55 import jdk.test.lib.cli.CommandLineOptionTest; |
56 import jdk.test.lib.cli.predicate.AndPredicate; |
56 import jdk.test.lib.cli.predicate.AndPredicate; |
57 |
57 |
58 import java.util.List; |
58 import java.util.List; |