comparison src/share/vm/memory/collectorPolicy.cpp @ 12110:4c84d351cca9

8007074: SIGSEGV at ParMarkBitMap::verify_clear() Summary: Replace the broken large pages implementation on Linux. New flag: -XX:+UseTransparentHugePages - Linux specific flag to turn on transparent huge page hinting with madvise(..., MAP_HUGETLB). Changed behavior: -XX:+UseLargePages - tries to use -XX:+UseTransparentHugePages before trying other large pages implementations (on Linux). Changed behavior: -XX:+UseHugeTLBFS - Use upfront allocation of Large Pages instead of using the broken implementation to dynamically committing large pages. Changed behavior: -XX:LargePageSizeInBytes - Turned off the ability to use this flag on Linux and provides warning to user if set to a value different than the OS chosen large page size. Changed behavior: Setting no large page size - Now defaults to use -XX:UseTransparentHugePages if the OS supports it. Previously, -XX:+UseHugeTLBFS was chosen if the OS was configured to use large pages. Reviewed-by: tschatzl, dcubed, brutisso
author stefank
date Fri, 16 Aug 2013 13:22:32 +0200
parents 2958af1d8c5a
children 40136aa2cdb1
comparison
equal deleted inserted replaced
12108:badf4244ceae 12110:4c84d351cca9
190 if (UseLargePages && !UseParallelGC) { 190 if (UseLargePages && !UseParallelGC) {
191 // in presence of large pages we have to make sure that our 191 // in presence of large pages we have to make sure that our
192 // alignment is large page aware 192 // alignment is large page aware
193 alignment = lcm(os::large_page_size(), alignment); 193 alignment = lcm(os::large_page_size(), alignment);
194 } 194 }
195
196 assert(alignment >= min_alignment(), "Must be");
195 197
196 return alignment; 198 return alignment;
197 } 199 }
198 200
199 void GenCollectorPolicy::initialize_flags() { 201 void GenCollectorPolicy::initialize_flags() {