src/share/vm/runtime/arguments.cpp

Print this page




4445     warning("Shared spaces are not supported in this VM");
4446     FLAG_SET_DEFAULT(UseSharedSpaces, false);
4447     LogConfiguration::configure_stdout(LogLevel::Off, true, LOG_TAGS(cds));
4448   }
4449   no_shared_spaces("CDS Disabled");
4450 #endif // INCLUDE_CDS
4451 
4452   return JNI_OK;
4453 }
4454 
4455 jint Arguments::apply_ergo() {
4456   // Set flags based on ergonomics.
4457   set_ergonomics_flags();
4458 
4459 #if INCLUDE_JVMCI
4460   set_jvmci_specific_flags();
4461 #endif
4462 
4463   set_shared_spaces_flags();
4464 






4465   // Check the GC selections again.
4466   if (!check_gc_consistency()) {
4467     return JNI_EINVAL;
4468   }
4469 
4470   if (TieredCompilation) {
4471     set_tiered_flags();
4472   } else {
4473     int max_compilation_policy_choice = 1;
4474 #ifdef COMPILER2
4475     if (is_server_compilation_mode_vm()) {
4476       max_compilation_policy_choice = 2;
4477     }
4478 #endif
4479     // Check if the policy is valid.
4480     if (CompilationPolicyChoice >= max_compilation_policy_choice) {
4481       vm_exit_during_initialization(
4482         "Incompatible compilation policy selected", NULL);
4483     }
4484     // Scale CompileThreshold




4445     warning("Shared spaces are not supported in this VM");
4446     FLAG_SET_DEFAULT(UseSharedSpaces, false);
4447     LogConfiguration::configure_stdout(LogLevel::Off, true, LOG_TAGS(cds));
4448   }
4449   no_shared_spaces("CDS Disabled");
4450 #endif // INCLUDE_CDS
4451 
4452   return JNI_OK;
4453 }
4454 
4455 jint Arguments::apply_ergo() {
4456   // Set flags based on ergonomics.
4457   set_ergonomics_flags();
4458 
4459 #if INCLUDE_JVMCI
4460   set_jvmci_specific_flags();
4461 #endif
4462 
4463   set_shared_spaces_flags();
4464 
4465 #if defined(SPARC)
4466   if (FLAG_IS_DEFAULT(AssumeMP)) {
4467     FLAG_SET_DEFAULT(AssumeMP, true);
4468   }
4469 #endif 
4470 
4471   // Check the GC selections again.
4472   if (!check_gc_consistency()) {
4473     return JNI_EINVAL;
4474   }
4475 
4476   if (TieredCompilation) {
4477     set_tiered_flags();
4478   } else {
4479     int max_compilation_policy_choice = 1;
4480 #ifdef COMPILER2
4481     if (is_server_compilation_mode_vm()) {
4482       max_compilation_policy_choice = 2;
4483     }
4484 #endif
4485     // Check if the policy is valid.
4486     if (CompilationPolicyChoice >= max_compilation_policy_choice) {
4487       vm_exit_during_initialization(
4488         "Incompatible compilation policy selected", NULL);
4489     }
4490     // Scale CompileThreshold