Isn't that restricted to aligned block-only access though? I can
imagine this would complicate the implementation if somebody wanted to
use it directly.

Dawid

On Tue, Sep 17, 2019 at 5:37 PM Michael McCandless
<[email protected]> wrote:
>
> Whoa!  That would be awesome -- no more JNI to use Direct I/O?
> Looks like you use it like this:
>
> FileChannel fc = FileChannel.open(p, StandardOpenOption.WRITE,
>                                   ExtendedOpenOption.DIRECT
>
> But it looks like you need to enable the jdk.unsupported module, added with 
> http://openjdk.java.net/jeps/260
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
>
> On Mon, Sep 16, 2019 at 11:55 AM Michael Sokolov <[email protected]> wrote:
>>
>> https://bugs.openjdk.java.net/browse/JDK-8189192 makes it appear that
>> Direct I/O is (or may be?) available now in JDK's since JDK10. Should
>> we try using that API in NativeUnixDirectory in order to avoid JNI
>> calls?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to