< prev index next >

test/compiler/jsr292/NonInlinedCall/RedefineTest.java

Print this page




  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 8072008
  27  * @library /testlibrary /test/lib
  28  * @compile -XDignore.symbol.file RedefineTest.java Agent.java
  29  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  30  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  31  *                              java.lang.invoke.RedefineTest
  32  *                              Agent
  33  *                              jdk.test.lib.Asserts
  34  * @run main Agent agent.jar java.lang.invoke.RedefineTest
  35  * @run main/othervm -Xbootclasspath/a:. -javaagent:agent.jar
  36  *                   -XX:+IgnoreUnrecognizedVMOptions
  37  *                   -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  38  *                   -Xbatch -XX:-TieredCompilation -XX:CICompilerCount=1
  39  *                      java.lang.invoke.RedefineTest
  40  */
  41 package java.lang.invoke;
  42 
  43 import sun.hotspot.WhiteBox;
  44 import sun.misc.Unsafe;
  45 import jdk.internal.org.objectweb.asm.*;
  46 import jdk.internal.vm.annotation.DontInline;
  47 import java.lang.instrument.ClassDefinition;
  48 import java.lang.instrument.Instrumentation;
  49 
  50 import static jdk.internal.org.objectweb.asm.Opcodes.*;
  51 
  52 public class RedefineTest {
  53     static final MethodHandles.Lookup LOOKUP = MethodHandles.Lookup.IMPL_LOOKUP;




  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 8072008
  27  * @library /testlibrary /test/lib
  28  * @compile -XDignore.symbol.file RedefineTest.java Agent.java
  29  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  30  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  31  *                              java.lang.invoke.RedefineTest
  32  *                              Agent

  33  * @run main Agent agent.jar java.lang.invoke.RedefineTest
  34  * @run main/othervm -Xbootclasspath/a:. -javaagent:agent.jar
  35  *                   -XX:+IgnoreUnrecognizedVMOptions
  36  *                   -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  37  *                   -Xbatch -XX:-TieredCompilation -XX:CICompilerCount=1
  38  *                      java.lang.invoke.RedefineTest
  39  */
  40 package java.lang.invoke;
  41 
  42 import sun.hotspot.WhiteBox;
  43 import sun.misc.Unsafe;
  44 import jdk.internal.org.objectweb.asm.*;
  45 import jdk.internal.vm.annotation.DontInline;
  46 import java.lang.instrument.ClassDefinition;
  47 import java.lang.instrument.Instrumentation;
  48 
  49 import static jdk.internal.org.objectweb.asm.Opcodes.*;
  50 
  51 public class RedefineTest {
  52     static final MethodHandles.Lookup LOOKUP = MethodHandles.Lookup.IMPL_LOOKUP;


< prev index next >