hotspot/test/compiler/profiling/TestMethodHandleInvokesIntrinsic.java
changeset 40059 c2304140ed64
parent 24313 2e10cd8a870f
equal deleted inserted replaced
40058:b4441f6cfe79 40059:c2304140ed64
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8041458
    26  * @bug 8041458
    27  * @summary profiling of arguments in C1 at MethodHandle invoke of intrinsic tries to profile popped argument.
    27  * @summary profiling of arguments in C1 at MethodHandle invoke of intrinsic tries to profile popped argument.
    28  * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TieredStopAtLevel=3 TestMethodHandleInvokesIntrinsic
    28  *
       
    29  * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement
       
    30  *                   -XX:TieredStopAtLevel=3
       
    31  *                   compiler.profiling.TestMethodHandleInvokesIntrinsic
    29  *
    32  *
    30  */
    33  */
    31 
    34 
    32 import java.lang.invoke.*;
    35 package compiler.profiling;
       
    36 
       
    37 import java.lang.invoke.MethodHandle;
       
    38 import java.lang.invoke.MethodHandles;
       
    39 import java.lang.invoke.MethodType;
    33 
    40 
    34 public class TestMethodHandleInvokesIntrinsic {
    41 public class TestMethodHandleInvokesIntrinsic {
    35 
    42 
    36     static final MethodHandle mh_nanoTime;
    43     static final MethodHandle mh_nanoTime;
    37     static final MethodHandle mh_getClass;
    44     static final MethodHandle mh_getClass;