< prev index next >

src/share/vm/runtime/arguments.cpp

Print this page




2467                 "Invalid ReservedCodeCacheSize=%dM. Must be at most %uM.\n", ReservedCodeCacheSize/M,
2468                 CODE_CACHE_SIZE_LIMIT/M);
2469     status = false;
2470   } else if (NonNMethodCodeHeapSize < min_code_cache_size) {
2471     jio_fprintf(defaultStream::error_stream(),
2472                 "Invalid NonNMethodCodeHeapSize=%dK. Must be at least %uK.\n", NonNMethodCodeHeapSize/K,
2473                 min_code_cache_size/K);
2474     status = false;
2475   }
2476 
2477   if (!FLAG_IS_DEFAULT(CICompilerCount) && !FLAG_IS_DEFAULT(CICompilerCountPerCPU) && CICompilerCountPerCPU) {
2478     warning("The VM option CICompilerCountPerCPU overrides CICompilerCount.");
2479   }
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)) {
2500     jio_fprintf(defaultStream::error_stream(),
2501                 "Obsolete %s%soption: %s\n", option_type, spacer,
2502       option->optionString);
2503     return false;
2504   } else {
2505     jio_fprintf(defaultStream::error_stream(),
2506                 "Unrecognized %s%soption: %s\n", option_type, spacer,




2467                 "Invalid ReservedCodeCacheSize=%dM. Must be at most %uM.\n", ReservedCodeCacheSize/M,
2468                 CODE_CACHE_SIZE_LIMIT/M);
2469     status = false;
2470   } else if (NonNMethodCodeHeapSize < min_code_cache_size) {
2471     jio_fprintf(defaultStream::error_stream(),
2472                 "Invalid NonNMethodCodeHeapSize=%dK. Must be at least %uK.\n", NonNMethodCodeHeapSize/K,
2473                 min_code_cache_size/K);
2474     status = false;
2475   }
2476 
2477   if (!FLAG_IS_DEFAULT(CICompilerCount) && !FLAG_IS_DEFAULT(CICompilerCountPerCPU) && CICompilerCountPerCPU) {
2478     warning("The VM option CICompilerCountPerCPU overrides CICompilerCount.");
2479   }
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 
2488   if (LINUX_ONLY(LP64_ONLY(false &&)) !FLAG_IS_DEFAULT(ValueTypePassFieldsAsArgs)) {
2489     FLAG_SET_CMDLINE(bool, ValueTypePassFieldsAsArgs, false);
2490     warning("ValueTypePassFieldsAsArgs is not supported on this platform");
2491   }
2492   return status;
2493 }
2494 
2495 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2496   const char* option_type) {
2497   if (ignore) return false;
2498 
2499   const char* spacer = " ";
2500   if (option_type == NULL) {
2501     option_type = ++spacer; // Set both to the empty string.
2502   }
2503 
2504   if (os::obsolete_option(option)) {
2505     jio_fprintf(defaultStream::error_stream(),
2506                 "Obsolete %s%soption: %s\n", option_type, spacer,
2507       option->optionString);
2508     return false;
2509   } else {
2510     jio_fprintf(defaultStream::error_stream(),
2511                 "Unrecognized %s%soption: %s\n", option_type, spacer,


< prev index next >