src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8150839 Sdiff src/share/vm/runtime

src/share/vm/runtime/arguments.cpp

Print this page




2455                 ReservedCodeCacheSize/K, InitialCodeCacheSize/K);
2456     status = false;
2457   } else if (ReservedCodeCacheSize < min_code_cache_size) {
2458     jio_fprintf(defaultStream::error_stream(),
2459                 "Invalid ReservedCodeCacheSize=%dK. Must be at least %uK.\n", ReservedCodeCacheSize/K,
2460                 min_code_cache_size/K);
2461     status = false;
2462   } else if (ReservedCodeCacheSize > CODE_CACHE_SIZE_LIMIT) {
2463     // Code cache size larger than CODE_CACHE_SIZE_LIMIT is not supported.
2464     jio_fprintf(defaultStream::error_stream(),
2465                 "Invalid ReservedCodeCacheSize=%dM. Must be at most %uM.\n", ReservedCodeCacheSize/M,
2466                 CODE_CACHE_SIZE_LIMIT/M);
2467     status = false;
2468   } else if (NonNMethodCodeHeapSize < min_code_cache_size) {
2469     jio_fprintf(defaultStream::error_stream(),
2470                 "Invalid NonNMethodCodeHeapSize=%dK. Must be at least %uK.\n", NonNMethodCodeHeapSize/K,
2471                 min_code_cache_size/K);
2472     status = false;
2473   }
2474 

2475   if (!FLAG_IS_DEFAULT(CICompilerCount) && !FLAG_IS_DEFAULT(CICompilerCountPerCPU) && CICompilerCountPerCPU) {
2476     warning("The VM option CICompilerCountPerCPU overrides CICompilerCount.");
2477   }

2478 
2479 #ifndef SUPPORT_RESERVED_STACK_AREA
2480   if (StackReservedPages != 0) {
2481     FLAG_SET_CMDLINE(intx, StackReservedPages, 0);
2482     warning("Reserved Stack Area not supported on this platform");
2483   }
2484 #endif
2485   return status;
2486 }
2487 
2488 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2489   const char* option_type) {
2490   if (ignore) return false;
2491 
2492   const char* spacer = " ";
2493   if (option_type == NULL) {
2494     option_type = ++spacer; // Set both to the empty string.
2495   }
2496 
2497   if (os::obsolete_option(option)) {




2455                 ReservedCodeCacheSize/K, InitialCodeCacheSize/K);
2456     status = false;
2457   } else if (ReservedCodeCacheSize < min_code_cache_size) {
2458     jio_fprintf(defaultStream::error_stream(),
2459                 "Invalid ReservedCodeCacheSize=%dK. Must be at least %uK.\n", ReservedCodeCacheSize/K,
2460                 min_code_cache_size/K);
2461     status = false;
2462   } else if (ReservedCodeCacheSize > CODE_CACHE_SIZE_LIMIT) {
2463     // Code cache size larger than CODE_CACHE_SIZE_LIMIT is not supported.
2464     jio_fprintf(defaultStream::error_stream(),
2465                 "Invalid ReservedCodeCacheSize=%dM. Must be at most %uM.\n", ReservedCodeCacheSize/M,
2466                 CODE_CACHE_SIZE_LIMIT/M);
2467     status = false;
2468   } else if (NonNMethodCodeHeapSize < min_code_cache_size) {
2469     jio_fprintf(defaultStream::error_stream(),
2470                 "Invalid NonNMethodCodeHeapSize=%dK. Must be at least %uK.\n", NonNMethodCodeHeapSize/K,
2471                 min_code_cache_size/K);
2472     status = false;
2473   }
2474 
2475 #ifdef _LP64
2476   if (!FLAG_IS_DEFAULT(CICompilerCount) && !FLAG_IS_DEFAULT(CICompilerCountPerCPU) && CICompilerCountPerCPU) {
2477     warning("The VM option CICompilerCountPerCPU overrides CICompilerCount.");
2478   }
2479 #endif
2480 
2481 #ifndef SUPPORT_RESERVED_STACK_AREA
2482   if (StackReservedPages != 0) {
2483     FLAG_SET_CMDLINE(intx, StackReservedPages, 0);
2484     warning("Reserved Stack Area not supported on this platform");
2485   }
2486 #endif
2487   return status;
2488 }
2489 
2490 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2491   const char* option_type) {
2492   if (ignore) return false;
2493 
2494   const char* spacer = " ";
2495   if (option_type == NULL) {
2496     option_type = ++spacer; // Set both to the empty string.
2497   }
2498 
2499   if (os::obsolete_option(option)) {


src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File