jdk/src/share/classes/sun/misc/Unsafe.java
changeset 13423 17843fff200d
parent 11117 b6e68b1344d4
child 13591 db0d8946475b
equal deleted inserted replaced
13422:72b63ee33f57 13423:17843fff200d
   676      * this class.
   676      * this class.
   677      */
   677      */
   678     public native Object staticFieldBase(Field f);
   678     public native Object staticFieldBase(Field f);
   679 
   679 
   680     /**
   680     /**
       
   681      * Detect if the given class may need to be initialized. This is often
       
   682      * needed in conjunction with obtaining the static field base of a
       
   683      * class.
       
   684      * @return false only if a call to {@code ensureClassInitialized} would have no effect
       
   685      */
       
   686     public native boolean shouldBeInitialized(Class<?> c);
       
   687 
       
   688     /**
   681      * Ensure the given class has been initialized. This is often
   689      * Ensure the given class has been initialized. This is often
   682      * needed in conjunction with obtaining the static field base of a
   690      * needed in conjunction with obtaining the static field base of a
   683      * class.
   691      * class.
   684      */
   692      */
   685     public native void ensureClassInitialized(Class<?> c);
   693     public native void ensureClassInitialized(Class<?> c);