RFR: 8229872: (fs) Increase buffer size used with getmntent

Alan Bateman Alan.Bateman at oracle.com
Sun Sep 8 08:44:17 UTC 2019


On 08/09/2019 09:38, Vladimir Kempik wrote:
> Hello Alan.
> Its not getmntent, its getline who can realloc
> Regards, Vladimir
>
Good, that's what I thought. This means that we don't need to change 
getmntent to use malloc/free. In its place, we just change the Java 
method to get a NativeBuffer and pass the address (and buflen) to the 
native function. This will simplify the patch and also keep it 
consistent with the existing code.

-Alan


More information about the nio-dev mailing list