equal
deleted
inserted
replaced
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 * |