equal
deleted
inserted
replaced
34 |
34 |
35 import java.security.AccessController; |
35 import java.security.AccessController; |
36 import java.security.Permission; |
36 import java.security.Permission; |
37 import java.security.PrivilegedAction; |
37 import java.security.PrivilegedAction; |
38 |
38 |
39 import sun.misc.Unsafe ; |
39 import jdk.internal.misc.Unsafe ; |
40 import sun.reflect.ReflectionFactory ; |
40 import sun.reflect.ReflectionFactory ; |
41 |
41 |
42 /** This class provides the methods for fundamental JVM operations |
42 /** This class provides the methods for fundamental JVM operations |
43 * needed in the ORB that are not part of the public Java API. This includes: |
43 * needed in the ORB that are not part of the public Java API. This includes: |
44 * <ul> |
44 * <ul> |
118 public Object run() |
118 public Object run() |
119 { |
119 { |
120 Field fld = null ; |
120 Field fld = null ; |
121 |
121 |
122 try { |
122 try { |
123 Class unsafeClass = sun.misc.Unsafe.class ; |
123 Class unsafeClass = jdk.internal.misc.Unsafe.class ; |
124 fld = unsafeClass.getDeclaredField( "theUnsafe" ) ; |
124 fld = unsafeClass.getDeclaredField( "theUnsafe" ) ; |
125 fld.setAccessible( true ) ; |
125 fld.setAccessible( true ) ; |
126 return fld ; |
126 return fld ; |
127 } catch (NoSuchFieldException exc) { |
127 } catch (NoSuchFieldException exc) { |
128 Error err = new Error( "Could not access Unsafe" ) ; |
128 Error err = new Error( "Could not access Unsafe" ) ; |