Files.read/readAllBytes can loop once with zero size buffer
Alan Bateman
Alan.Bateman at oracle.com
Fri Jul 29 20:46:03 UTC 2016
On 29/07/2016 19:36, Martin Buchholz wrote:
> I think keeping the status quo is the right outcome. The /proc filesystem
> is intentionally providing incorrect information because providing correct
> information is deemed to be too expensive (have to compute contents of file
> for stat?). Reading /proc is sufficiently expensive that the extra realloc
> of an empty buffer is noise. Be thankful that reading files in /proc works
> at all!
>
>
and just to add that we have a file specifically for /proc as it used to
cause problems in early versions.
-Alan
More information about the core-libs-dev
mailing list