mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8165889: Remove jdk.test.lib.unsafe.UnsafeHelper
Remove use of setAccessible() to get Unsafe. Reviewed-by: shade, lfoltan
This commit is contained in:
parent
08cc021f41
commit
d624da8942
51 changed files with 56 additions and 151 deletions
|
@ -52,7 +52,6 @@ import compiler.jvmci.common.testcases.SingleSubclassedClass;
|
|||
import jdk.internal.misc.Unsafe;
|
||||
import jdk.test.lib.Asserts;
|
||||
import jdk.test.lib.Utils;
|
||||
import jdk.test.lib.unsafe.UnsafeHelper;
|
||||
import jdk.vm.ci.hotspot.CompilerToVMHelper;
|
||||
import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod;
|
||||
import jdk.vm.ci.hotspot.HotSpotResolvedObjectType;
|
||||
|
@ -61,7 +60,7 @@ import java.util.HashSet;
|
|||
import java.util.Set;
|
||||
|
||||
public class ResolveMethodTest {
|
||||
private static final Unsafe UNSAFE = UnsafeHelper.getUnsafe();
|
||||
private static final Unsafe UNSAFE = Unsafe.getUnsafe();
|
||||
|
||||
public static void main(String args[]) {
|
||||
ResolveMethodTest test = new ResolveMethodTest();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue