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

Vladimir Kempik vkempik at azul.com
Tue Aug 20 14:00:40 UTC 2019


Hello
Sorry I wasn’t clear.
Parsing will be simple. (dup, getline, close)
The issue is to synchronize result (max line width, and realloced buffer (if needed)) between setmntent0 and getmntent.
Thanks, Vladimir

> 20 авг. 2019 г., в 16:47, Alan Bateman <Alan.Bateman at oracle.com> написал(а):
> 
> On 20/08/2019 14:43, Vladimir Kempik wrote:
>> Hello
>> 
>> I’m planning to sync setmntent/getmntent on some object via MonitorEnter/Exit to prevent race condition.
>> But where to get some jobject ?
>> Should I pass it from caller (java method), but then It needs to be some static object.
>> Or should I create my own on first usage of setmntent ?
> If you are talking about parsing the file then you shouldn't need any code to do this. In this case, we try to keep the JNI methods to be as simple as possible, usually just to wrap a system or lib call.
> 
> -Alan.



More information about the nio-dev mailing list