< prev index next >

test/hotspot/jtreg/compiler/whitebox/RelocateNMethodMultiplePaths.java

Print this page

  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 /*
 26  * @test id=C1

 27  * @bug 8316694
 28  * @requires vm.debug == true
 29  * @summary test that relocated nmethod is correctly deoptimized
 30  * @library /test/lib /
 31  * @modules java.base/jdk.internal.misc java.management
 32  *
 33  * @build jdk.test.whitebox.WhiteBox
 34  * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
 35  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:+TieredCompilation -XX:TieredStopAtLevel=1
 36  * -XX:+SegmentedCodeCache -XX:-DeoptimizeRandom -XX:+DeoptimizeALot -XX:+UnlockExperimentalVMOptions -XX:+NMethodRelocation
 37  * compiler.whitebox.RelocateNMethodMultiplePaths
 38  */
 39 
 40 /*
 41  * @test id=C2

 42  * @bug 8316694
 43  * @requires vm.debug == true
 44  * @summary test that relocated nmethod is correctly deoptimized
 45  * @library /test/lib /
 46  * @modules java.base/jdk.internal.misc java.management
 47  *
 48  * @build jdk.test.whitebox.WhiteBox
 49  * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
 50  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:+TieredCompilation
 51  * -XX:+SegmentedCodeCache -XX:-DeoptimizeRandom -XX:+DeoptimizeALot -XX:+UnlockExperimentalVMOptions -XX:+NMethodRelocation
 52  * compiler.whitebox.RelocateNMethodMultiplePaths
 53  */
 54 
 55 package compiler.whitebox;
 56 
 57 import compiler.whitebox.CompilerWhiteBoxTest;
 58 import java.lang.reflect.Method;
 59 import jdk.test.whitebox.WhiteBox;
 60 import jdk.test.whitebox.code.BlobType;
 61 import jdk.test.whitebox.code.NMethod;

  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 /*
 26  * @test id=C1
 27  * @ignore
 28  * @bug 8316694
 29  * @requires vm.debug == true
 30  * @summary test that relocated nmethod is correctly deoptimized
 31  * @library /test/lib /
 32  * @modules java.base/jdk.internal.misc java.management
 33  *
 34  * @build jdk.test.whitebox.WhiteBox
 35  * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
 36  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:+TieredCompilation -XX:TieredStopAtLevel=1
 37  * -XX:+SegmentedCodeCache -XX:-DeoptimizeRandom -XX:+DeoptimizeALot -XX:+UnlockExperimentalVMOptions -XX:+NMethodRelocation
 38  * compiler.whitebox.RelocateNMethodMultiplePaths
 39  */
 40 
 41 /*
 42  * @test id=C2
 43  * @ignore
 44  * @bug 8316694
 45  * @requires vm.debug == true
 46  * @summary test that relocated nmethod is correctly deoptimized
 47  * @library /test/lib /
 48  * @modules java.base/jdk.internal.misc java.management
 49  *
 50  * @build jdk.test.whitebox.WhiteBox
 51  * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
 52  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:+TieredCompilation
 53  * -XX:+SegmentedCodeCache -XX:-DeoptimizeRandom -XX:+DeoptimizeALot -XX:+UnlockExperimentalVMOptions -XX:+NMethodRelocation
 54  * compiler.whitebox.RelocateNMethodMultiplePaths
 55  */
 56 
 57 package compiler.whitebox;
 58 
 59 import compiler.whitebox.CompilerWhiteBoxTest;
 60 import java.lang.reflect.Method;
 61 import jdk.test.whitebox.WhiteBox;
 62 import jdk.test.whitebox.code.BlobType;
 63 import jdk.test.whitebox.code.NMethod;
< prev index next >