RFR: 8229872: (fs) Increase buffer size used with getmntent
Alan Bateman
Alan.Bateman at oracle.com
Tue Aug 20 13:47:57 UTC 2019
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