8234599: PPC64: Add support on recent CPUs and Linux for JEP-352

Reviewed-by: mbaesken, mdoerr, adinn
This commit is contained in:
Gustavo Romero 2019-11-21 17:10:26 -03:00
parent fb1c57789e
commit 1691abc747
7 changed files with 115 additions and 7 deletions

View file

@ -112,9 +112,9 @@ Java_sun_nio_ch_FileChannelImpl_map0(JNIEnv *env, jobject this,
if (map_sync) {
// ensure
// 1) this is Linux on AArch64 or x86_64
// 2) the mmap APIs are available/ at compile time
#if !defined(LINUX) || ! (defined(aarch64) || (defined(amd64) && defined(_LP64)))
// 1) this is Linux on AArch64, x86_64, or PPC64 LE
// 2) the mmap APIs are available at compile time
#if !defined(LINUX) || ! (defined(aarch64) || (defined(amd64) && defined(_LP64)) || defined(ppc64le))
// TODO - implement for solaris/AIX/BSD/WINDOWS and for 32 bit
JNU_ThrowInternalError(env, "should never call map on platform where MAP_SYNC is unimplemented");
return IOS_THROWN;