RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

Alan Bateman alanb at openjdk.org
Wed Jul 26 06:36:42 UTC 2023


On Wed, 26 Jul 2023 06:17:13 GMT, Vyom Tewari <vtewari at openjdk.org> wrote:

> If i am reading code correctly then with the new implementation, until client issue the next "FIS.read" he may or may not know if there was exception pending in previous 'read' call ?.
> I am not sure in case of partial read we have suppress the exception.

It's a forced move because bytes have already been copied into user's byte[].

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14981#discussion_r1274438315



More information about the security-dev mailing list