8192898: AIX build broken after 8190308
Doerr, Martin
martin.doerr at sap.com
Fri Dec 1 14:03:38 UTC 2017
Hi,
I have opened a new bug jdk-8192898.
"MAP_NORESERVE" was introduced in os_posix.cpp. It is not POSIX and it is not defined on AIX. Not sure if any other OS is affected, too.
Should non-POSIX code be in os_posix.cpp?
I can provide a trivial fix for AIX (see below). But maybe somebody has a better idea?
Best regards,
Martin
--- a/src/hotspot/os/posix/os_posix.cpp Thu Nov 30 18:05:57 2017 +0100
+++ b/src/hotspot/os/posix/os_posix.cpp Thu Nov 30 18:55:02 2017 +0100
@@ -200,7 +200,7 @@
static char* reserve_mmapped_memory(size_t bytes, char* requested_addr) {
char * addr;
- int flags = MAP_PRIVATE | MAP_NORESERVE | MAP_ANONYMOUS;
+ int flags = MAP_PRIVATE NOT_AIX( | MAP_NORESERVE ) | MAP_ANONYMOUS;
if (requested_addr != NULL) {
assert((uintptr_t)requested_addr % os::vm_page_size() == 0, "Requested address should be aligned to OS page size");
flags |= MAP_FIXED;
More information about the hotspot-runtime-dev
mailing list