src/java.base/share/classes/java/nio/file/Files.java
changeset 52427 3c6aa484536c
parent 50820 35f52a3cd6bd
child 52458 66a0e6b3ec1a
equal deleted inserted replaced
52426:38bf0c9c4e64 52427:3c6aa484536c
  3126      * Attempts to allocate larger arrays may result in
  3126      * Attempts to allocate larger arrays may result in
  3127      * OutOfMemoryError: Requested array size exceeds VM limit
  3127      * OutOfMemoryError: Requested array size exceeds VM limit
  3128      */
  3128      */
  3129     private static final int MAX_BUFFER_SIZE = Integer.MAX_VALUE - 8;
  3129     private static final int MAX_BUFFER_SIZE = Integer.MAX_VALUE - 8;
  3130 
  3130 
  3131     private static final jdk.internal.misc.JavaLangAccess JLA =
  3131     private static final jdk.internal.access.JavaLangAccess JLA =
  3132             jdk.internal.misc.SharedSecrets.getJavaLangAccess();
  3132             jdk.internal.access.SharedSecrets.getJavaLangAccess();
  3133 
  3133 
  3134     /**
  3134     /**
  3135      * Reads all the bytes from an input stream. Uses {@code initialSize} as a hint
  3135      * Reads all the bytes from an input stream. Uses {@code initialSize} as a hint
  3136      * about how many bytes the stream will have.
  3136      * about how many bytes the stream will have.
  3137      *
  3137      *