--- a/hotspot/test/compiler/unsafe/GetUnsafeObjectG1PreBarrier.java Tue Jul 12 08:42:46 2016 +0000
+++ b/hotspot/test/compiler/unsafe/GetUnsafeObjectG1PreBarrier.java Tue Jul 12 18:24:48 2016 +0300
@@ -25,14 +25,18 @@
* @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
+ * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=32
+ * compiler.unsafe.GetUnsafeObjectG1PreBarrier
*/
-import java.lang.reflect.Field;
+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;