< prev index next >

test/compiler/unsafe/UnsafeRaw.java

Print this page

        

*** 33,43 **** package compiler.unsafe; import jdk.internal.misc.Unsafe; import jdk.test.lib.Utils; - import jdk.test.lib.unsafe.UnsafeHelper; import java.util.Random; public class UnsafeRaw { public static class Tests { --- 33,42 ----
*** 80,90 **** return unsafe.getInt(base + (index * 16)); } } public static void main(String[] args) throws Exception { ! Unsafe unsafe = UnsafeHelper.getUnsafe(); final int array_size = 128; final int element_size = 4; final int magic = 0x12345678; Random rnd = Utils.getRandomInstance(); --- 79,89 ---- return unsafe.getInt(base + (index * 16)); } } public static void main(String[] args) throws Exception { ! Unsafe unsafe = Unsafe.getUnsafe(); final int array_size = 128; final int element_size = 4; final int magic = 0x12345678; Random rnd = Utils.getRandomInstance();
< prev index next >