src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java
changeset 48065 c4f2b6749c86
parent 47866 39db80b32b69
child 48262 daf3b49f4839
equal deleted inserted replaced
48064:390794d000e6 48065:c4f2b6749c86
   122      *         the slot is not valid to register.
   122      *         the slot is not valid to register.
   123      */
   123      */
   124     void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook);
   124     void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook);
   125 
   125 
   126     /**
   126     /**
   127      * Returns a new string backed by the provided character array. The
       
   128      * character array is not copied and must never be modified after the
       
   129      * String is created, in order to fulfill String's contract.
       
   130      *
       
   131      * @param chars the character array to back the string
       
   132      * @return a newly created string whose content is the character array
       
   133      */
       
   134     String newStringUnsafe(char[] chars);
       
   135 
       
   136     /**
       
   137      * Returns a new Thread with the given Runnable and an
   127      * Returns a new Thread with the given Runnable and an
   138      * inherited AccessControlContext.
   128      * inherited AccessControlContext.
   139      */
   129      */
   140     Thread newThreadWithAcc(Runnable target, AccessControlContext acc);
   130     Thread newThreadWithAcc(Runnable target, AccessControlContext acc);
   141 
   131