Proposal for adding O_DIRECT support into JDK 9
yingqi.lu at intel.com
Tue Aug 29 17:19:23 UTC 2017
Thank you for your suggestion. I first tried to run StringPlatformChars.java with jtreg and wanted to understand how it works. However the test failed with error message " test result: Error. Use -nativepath to specify the location of native code"
The command I use to run is:
Please let me know if I missed anything.
>From: Alan Bateman [mailto:Alan.Bateman at oracle.com]
>Sent: Tuesday, August 29, 2017 3:24 AM
>To: Brian Burkhalter <brian.burkhalter at oracle.com>; Lu, Yingqi
><yingqi.lu at intel.com>
>Cc: Markle, Seth <smarkle at amazon.com>; nio-dev at openjdk.java.net
>Subject: Re: Proposal for adding O_DIRECT support into JDK 9
>On 28/08/2017 21:28, Brian Burkhalter wrote:
>> Hi Lucy,
>> I am unsure of the best way to get the native code to build as part of
>> the test build. One example however of where this is done is in
>> <JDK_REPO>/jdk/test/java/awt/JAWT but the test is a shell test and we
>> are trying to move away from those. I do not know exactly what Alan
>> intends by his comment. There are other tests which have pre-compiled
>> shared libraries checked into the SCM. If there is a problem with the
>> native library itself or in locating it, then I would think the test
>> should fail and we would be alerted that there is a problem.
>An example to study is the test in
>jdk/test/java/lang/String/nativeEncoding. The make file to build it is
>jdk/make/test/JtregNative.gmk. No issue with splitting this to a separate
>issue if you decide to include it.
More information about the nio-dev