< prev index next >
test/compiler/loopopts/superword/TestVectorizationWithInvariant.java
Print this page
*** 32,51 ****
*/
package compiler.loopopts.superword;
import jdk.internal.misc.Unsafe;
- import jdk.test.lib.unsafe.UnsafeHelper;
public class TestVectorizationWithInvariant {
private static Unsafe unsafe;
private static final long BYTE_ARRAY_OFFSET;
private static final long CHAR_ARRAY_OFFSET;
static {
! unsafe = UnsafeHelper.getUnsafe();
BYTE_ARRAY_OFFSET = unsafe.arrayBaseOffset(byte[].class);
CHAR_ARRAY_OFFSET = unsafe.arrayBaseOffset(char[].class);
}
public static void main(String[] args) throws Exception {
--- 32,50 ----
*/
package compiler.loopopts.superword;
import jdk.internal.misc.Unsafe;
public class TestVectorizationWithInvariant {
private static Unsafe unsafe;
private static final long BYTE_ARRAY_OFFSET;
private static final long CHAR_ARRAY_OFFSET;
static {
! unsafe = Unsafe.getUnsafe();
BYTE_ARRAY_OFFSET = unsafe.arrayBaseOffset(byte[].class);
CHAR_ARRAY_OFFSET = unsafe.arrayBaseOffset(char[].class);
}
public static void main(String[] args) throws Exception {
< prev index next >