< prev index next >

src/hotspot/os/solaris/os_solaris.cpp

Print this page
rev 47414 : Move polling page allocation to SafepointMechanism initialization
rev 47415 : Add Thread Local handshakes and thread local polling

@@ -2189,14 +2189,10 @@
 ////////////////////////////////////////////////////////////////////////////////
 // Virtual Memory
 
 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;
 }
 

@@ -2559,11 +2555,11 @@
   assert(!(fixed && (alignment_hint > 0)),
          "alignment hint meaningless with fixed mmap");
 
   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;
   }
 
   // Map uncommitted pages PROT_NONE so we fail early if we touch an
< prev index next >