8165889: Remove jdk.test.lib.unsafe.UnsafeHelper

Remove use of setAccessible() to get Unsafe.

Reviewed-by: shade, lfoltan
This commit is contained in:
George Triantafillou 2016-09-14 08:17:50 -04:00
parent 08cc021f41
commit d624da8942
51 changed files with 56 additions and 151 deletions

View file

@ -53,7 +53,6 @@ import compiler.jvmci.compilerToVM.ConstantPoolTestsHelper.DummyClasses;
import jdk.internal.misc.Unsafe;
import jdk.internal.org.objectweb.asm.Opcodes;
import jdk.test.lib.Asserts;
import jdk.test.lib.unsafe.UnsafeHelper;
import jdk.vm.ci.hotspot.CompilerToVMHelper;
import jdk.vm.ci.hotspot.HotSpotResolvedObjectType;
import jdk.vm.ci.meta.ConstantPool;
@ -69,7 +68,7 @@ import static compiler.jvmci.compilerToVM.ConstantPoolTestCase.ConstantTypes.CON
*/
public class ResolveFieldInPoolTest {
private static final Unsafe UNSAFE = UnsafeHelper.getUnsafe();
private static final Unsafe UNSAFE = Unsafe.getUnsafe();
public static void main(String[] args) throws Exception {
Map<ConstantTypes, Validator> typeTests = new HashMap<>();