Proposal for adding O_DIRECT support into JDK 9
Lu, Yingqi
yingqi.lu at intel.com
Thu Sep 7 21:36:26 UTC 2017
Hi Brian,
I might be missing something here, but I think the four read/write tests do not need the libDirectIO.dylib file? Only DirectIOTest.java needs the native library.
Thanks,
Lucy
From: Brian Burkhalter [mailto:brian.burkhalter at oracle.com]
Sent: Thursday, September 07, 2017 1:53 PM
To: Lu, Yingqi <yingqi.lu at intel.com>
Cc: huaming.li at oracle.com; nio-dev at openjdk.java.net
Subject: Re: Proposal for adding O_DIRECT support into JDK 9
On Sep 7, 2017, at 12:41 PM, Lu, Yingqi <yingqi.lu at intel.com<mailto:yingqi.lu at intel.com>> wrote:
I tested your patch and it works on both MacOS and Linux both. I will include it in the next version of the patch.
Please also let me know if you see anything missing from the build+regession test.
This patch fixes the build problem on all Unix platforms, but when I run the Direct I/O tests locally on macOS I get this error
java.lang.UnsatisfiedLinkError: Native Library /Users/bpb/Work/CoreLibs/jdk/jdk10/dev/build/macosx-x86_64-normal-server-fastdebug/support/test/jdk/jtreg/native/lib/libDirectIO.dylib already loaded in another classloader
for the four read and writes tests. The DirectIOTests passes.
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20170907/a242caab/attachment.html>
More information about the nio-dev
mailing list