23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8016474 |
26 * @bug 8016474 |
27 * @summary The bug only happens with C1 and G1 using a different ObjectAlignmentInBytes than KlassAlignmentInBytes (which is 8) |
27 * @summary The bug only happens with C1 and G1 using a different ObjectAlignmentInBytes than KlassAlignmentInBytes (which is 8) |
28 * @run main/othervm -Xbatch -XX:ObjectAlignmentInBytes=32 GetUnsafeObjectG1PreBarrier |
28 * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=32 GetUnsafeObjectG1PreBarrier |
29 */ |
29 */ |
30 |
30 |
31 import java.lang.reflect.Field; |
31 import java.lang.reflect.Field; |
32 |
32 |
33 import sun.misc.Unsafe; |
33 import sun.misc.Unsafe; |