2261 status = status && verify_min_value(DefaultMaxRAMFraction, 1, "DefaultMaxRAMFraction");
2262
2263 status = status && verify_interval(AdaptiveTimeWeight, 0, 100, "AdaptiveTimeWeight");
2264 status = status && verify_min_value(AdaptiveSizeDecrementScaleFactor, 1, "AdaptiveSizeDecrementScaleFactor");
2265
2266 status = status && verify_interval(TLABAllocationWeight, 0, 100, "TLABAllocationWeight");
2267 status = status && verify_min_value(MinTLABSize, 1, "MinTLABSize");
2268 status = status && verify_min_value(TLABRefillWasteFraction, 1, "TLABRefillWasteFraction");
2269
2270 status = status && verify_percentage(YoungGenerationSizeSupplement, "YoungGenerationSizeSupplement");
2271 status = status && verify_percentage(TenuredGenerationSizeSupplement, "TenuredGenerationSizeSupplement");
2272
2273 // the "age" field in the oop header is 4 bits; do not want to pull in markOop.hpp
2274 // just for that, so hardcode here.
2275 status = status && verify_interval(MaxTenuringThreshold, 0, 15, "MaxTenuringThreshold");
2276 status = status && verify_interval(InitialTenuringThreshold, 0, MaxTenuringThreshold, "MaxTenuringThreshold");
2277 status = status && verify_percentage(TargetSurvivorRatio, "TargetSurvivorRatio");
2278 status = status && verify_percentage(MarkSweepDeadRatio, "MarkSweepDeadRatio");
2279
2280 status = status && verify_min_value(MarkSweepAlwaysCompactCount, 1, "MarkSweepAlwaysCompactCount");
2281 #ifdef SPARC
2282 if (UseConcMarkSweepGC || UseG1GC) {
2283 // Issue a stern warning if the user has explicitly set
2284 // UseMemSetInBOT (it is known to cause issues), but allow
2285 // use for experimentation and debugging.
2286 if (VM_Version::is_sun4v() && UseMemSetInBOT) {
2287 assert(!FLAG_IS_DEFAULT(UseMemSetInBOT), "Error");
2288 warning("Experimental flag -XX:+UseMemSetInBOT is known to cause instability"
2289 " on sun4v; please understand that you are using at your own risk!");
2290 }
2291 }
2292 #endif // SPARC
2293
2294 if (PrintNMTStatistics) {
2295 #if INCLUDE_NMT
2296 if (MemTracker::tracking_level() == MemTracker::NMT_off) {
2297 #endif // INCLUDE_NMT
2298 warning("PrintNMTStatistics is disabled, because native memory tracking is not enabled");
2299 PrintNMTStatistics = false;
2300 #if INCLUDE_NMT
2301 }
2302 #endif
2303 }
2304
2305 // Need to limit the extent of the padding to reasonable size.
2306 // 8K is well beyond the reasonable HW cache line size, even with the
2307 // aggressive prefetching, while still leaving the room for segregating
2308 // among the distinct pages.
2309 if (ContendedPaddingWidth < 0 || ContendedPaddingWidth > 8192) {
2310 jio_fprintf(defaultStream::error_stream(),
2311 "ContendedPaddingWidth=" INTX_FORMAT " must be in between %d and %d\n",
2312 ContendedPaddingWidth, 0, 8192);
|
2261 status = status && verify_min_value(DefaultMaxRAMFraction, 1, "DefaultMaxRAMFraction");
2262
2263 status = status && verify_interval(AdaptiveTimeWeight, 0, 100, "AdaptiveTimeWeight");
2264 status = status && verify_min_value(AdaptiveSizeDecrementScaleFactor, 1, "AdaptiveSizeDecrementScaleFactor");
2265
2266 status = status && verify_interval(TLABAllocationWeight, 0, 100, "TLABAllocationWeight");
2267 status = status && verify_min_value(MinTLABSize, 1, "MinTLABSize");
2268 status = status && verify_min_value(TLABRefillWasteFraction, 1, "TLABRefillWasteFraction");
2269
2270 status = status && verify_percentage(YoungGenerationSizeSupplement, "YoungGenerationSizeSupplement");
2271 status = status && verify_percentage(TenuredGenerationSizeSupplement, "TenuredGenerationSizeSupplement");
2272
2273 // the "age" field in the oop header is 4 bits; do not want to pull in markOop.hpp
2274 // just for that, so hardcode here.
2275 status = status && verify_interval(MaxTenuringThreshold, 0, 15, "MaxTenuringThreshold");
2276 status = status && verify_interval(InitialTenuringThreshold, 0, MaxTenuringThreshold, "MaxTenuringThreshold");
2277 status = status && verify_percentage(TargetSurvivorRatio, "TargetSurvivorRatio");
2278 status = status && verify_percentage(MarkSweepDeadRatio, "MarkSweepDeadRatio");
2279
2280 status = status && verify_min_value(MarkSweepAlwaysCompactCount, 1, "MarkSweepAlwaysCompactCount");
2281
2282 if (PrintNMTStatistics) {
2283 #if INCLUDE_NMT
2284 if (MemTracker::tracking_level() == MemTracker::NMT_off) {
2285 #endif // INCLUDE_NMT
2286 warning("PrintNMTStatistics is disabled, because native memory tracking is not enabled");
2287 PrintNMTStatistics = false;
2288 #if INCLUDE_NMT
2289 }
2290 #endif
2291 }
2292
2293 // Need to limit the extent of the padding to reasonable size.
2294 // 8K is well beyond the reasonable HW cache line size, even with the
2295 // aggressive prefetching, while still leaving the room for segregating
2296 // among the distinct pages.
2297 if (ContendedPaddingWidth < 0 || ContendedPaddingWidth > 8192) {
2298 jio_fprintf(defaultStream::error_stream(),
2299 "ContendedPaddingWidth=" INTX_FORMAT " must be in between %d and %d\n",
2300 ContendedPaddingWidth, 0, 8192);
|