8192898: AIX build broken after JDK-8190308

Reviewed-by: coleenp
This commit is contained in:
Martin Doerr 2017-12-01 11:26:22 -05:00
parent 7c89ccfeb8
commit f8f83d77a8

View File

@ -200,7 +200,7 @@ int os::create_file_for_heap(const char* dir) {
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;