< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page




3883       "Shared spaces are not supported in this VM\n");
3884     return JNI_ERR;
3885   }
3886   if ((UseSharedSpaces && FLAG_IS_CMDLINE(UseSharedSpaces)) ||
3887       log_is_enabled(Info, cds)) {
3888     warning("Shared spaces are not supported in this VM");
3889     FLAG_SET_DEFAULT(UseSharedSpaces, false);
3890     LogConfiguration::configure_stdout(LogLevel::Off, true, LOG_TAGS(cds));
3891   }
3892   no_shared_spaces("CDS Disabled");
3893 #endif // INCLUDE_CDS
3894 
3895   return JNI_OK;
3896 }
3897 
3898 jint Arguments::apply_ergo() {
3899   // Set flags based on ergonomics.
3900   jint result = set_ergonomics_flags();
3901   if (result != JNI_OK) return result;
3902 
3903   set_shared_spaces_flags();
3904 
3905   // Set heap size based on available physical memory
3906   set_heap_size();
3907 
3908   GCConfig::arguments()->initialize();


3909 
3910   // Initialize Metaspace flags and alignments
3911   Metaspace::ergo_initialize();
3912 
3913   // Set compiler flags after GC is selected and GC specific
3914   // flags (LoopStripMiningIter) are set.
3915   CompilerConfig::ergo_initialize();
3916 
3917   // Set bytecode rewriting flags
3918   set_bytecode_flags();
3919 
3920   // Set flags if Aggressive optimization flags (-XX:+AggressiveOpts) enabled
3921   jint code = set_aggressive_opts_flags();
3922   if (code != JNI_OK) {
3923     return code;
3924   }
3925 
3926   // Turn off biased locking for locking debug mode flags,
3927   // which are subtly different from each other but neither works with
3928   // biased locking




3883       "Shared spaces are not supported in this VM\n");
3884     return JNI_ERR;
3885   }
3886   if ((UseSharedSpaces && FLAG_IS_CMDLINE(UseSharedSpaces)) ||
3887       log_is_enabled(Info, cds)) {
3888     warning("Shared spaces are not supported in this VM");
3889     FLAG_SET_DEFAULT(UseSharedSpaces, false);
3890     LogConfiguration::configure_stdout(LogLevel::Off, true, LOG_TAGS(cds));
3891   }
3892   no_shared_spaces("CDS Disabled");
3893 #endif // INCLUDE_CDS
3894 
3895   return JNI_OK;
3896 }
3897 
3898 jint Arguments::apply_ergo() {
3899   // Set flags based on ergonomics.
3900   jint result = set_ergonomics_flags();
3901   if (result != JNI_OK) return result;
3902 


3903   // Set heap size based on available physical memory
3904   set_heap_size();
3905 
3906   GCConfig::arguments()->initialize();
3907 
3908   set_shared_spaces_flags();
3909 
3910   // Initialize Metaspace flags and alignments
3911   Metaspace::ergo_initialize();
3912 
3913   // Set compiler flags after GC is selected and GC specific
3914   // flags (LoopStripMiningIter) are set.
3915   CompilerConfig::ergo_initialize();
3916 
3917   // Set bytecode rewriting flags
3918   set_bytecode_flags();
3919 
3920   // Set flags if Aggressive optimization flags (-XX:+AggressiveOpts) enabled
3921   jint code = set_aggressive_opts_flags();
3922   if (code != JNI_OK) {
3923     return code;
3924   }
3925 
3926   // Turn off biased locking for locking debug mode flags,
3927   // which are subtly different from each other but neither works with
3928   // biased locking


< prev index next >