< prev index next >
test/compiler/unsafe/GetUnsafeObjectG1PreBarrier.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 23,40 ****
/*
* @test
* @bug 8016474
* @summary The bug only happens with C1 and G1 using a different ObjectAlignmentInBytes than KlassAlignmentInBytes (which is 8)
* @modules java.base/jdk.internal.misc
! * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=32 GetUnsafeObjectG1PreBarrier
*/
! import java.lang.reflect.Field;
import jdk.internal.misc.Unsafe;
public class GetUnsafeObjectG1PreBarrier {
private static final Unsafe unsafe;
private static final int N = 100_000;
static {
--- 23,44 ----
/*
* @test
* @bug 8016474
* @summary The bug only happens with C1 and G1 using a different ObjectAlignmentInBytes than KlassAlignmentInBytes (which is 8)
+ *
* @modules java.base/jdk.internal.misc
! * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=32
! * compiler.unsafe.GetUnsafeObjectG1PreBarrier
*/
! package compiler.unsafe;
import jdk.internal.misc.Unsafe;
+ import java.lang.reflect.Field;
+
public class GetUnsafeObjectG1PreBarrier {
private static final Unsafe unsafe;
private static final int N = 100_000;
static {
< prev index next >