--- old/src/hotspot/os/solaris/os_solaris.cpp 2017-10-11 15:25:26.320932431 +0200 +++ new/src/hotspot/os/solaris/os_solaris.cpp 2017-10-11 15:25:26.078922040 +0200 @@ -2191,10 +2191,6 @@ static int page_size = -1; -// The mmap MAP_ALIGN flag is supported on Solaris 9 and later. init_2() will -// clear this var if support is not available. -static bool has_map_align = true; - int os::vm_page_size() { assert(page_size != -1, "must call os::init"); return page_size; @@ -2561,7 +2557,7 @@ if (fixed) { flags |= MAP_FIXED; - } else if (has_map_align && (alignment_hint > (size_t) vm_page_size())) { + } else if (alignment_hint > (size_t) vm_page_size()) { flags |= MAP_ALIGN; addr = (char*) alignment_hint; }