corba/src/java.corba/share/classes/sun/corba/Bridge.java
changeset 33680 56aa0b79bf5a
parent 25862 a5e25d68f971
child 37376 5daa5fbad3ce
equal deleted inserted replaced
33559:f242d4332f56 33680:56aa0b79bf5a
    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" ) ;