src/hotspot/share/runtime/arguments.cpp
changeset 49339 e651c3ea6ea8
parent 49185 5d1b75086f98
child 49359 59f6547e151f
equal deleted inserted replaced
49338:41e7a68fbf45 49339:e651c3ea6ea8
  1854 #endif // !ZERO
  1854 #endif // !ZERO
  1855 
  1855 
  1856   return JNI_OK;
  1856   return JNI_OK;
  1857 }
  1857 }
  1858 
  1858 
  1859 void Arguments::set_gc_specific_flags() {
       
  1860   // Set GC flags
       
  1861   GCArguments::arguments()->initialize_flags();
       
  1862 }
       
  1863 
       
  1864 julong Arguments::limit_by_allocatable_memory(julong limit) {
  1859 julong Arguments::limit_by_allocatable_memory(julong limit) {
  1865   julong max_allocatable;
  1860   julong max_allocatable;
  1866   julong result = limit;
  1861   julong result = limit;
  1867   if (os::has_allocatable_memory_limit(&max_allocatable)) {
  1862   if (os::has_allocatable_memory_limit(&max_allocatable)) {
  1868     result = MIN2(result, max_allocatable / MaxVirtMemFraction);
  1863     result = MIN2(result, max_allocatable / MaxVirtMemFraction);
  4284 #endif
  4279 #endif
  4285 
  4280 
  4286   // Set heap size based on available physical memory
  4281   // Set heap size based on available physical memory
  4287   set_heap_size();
  4282   set_heap_size();
  4288 
  4283 
  4289   ArgumentsExt::set_gc_specific_flags();
  4284   GCArguments::arguments()->initialize_flags();
  4290 
  4285 
  4291   // Initialize Metaspace flags and alignments
  4286   // Initialize Metaspace flags and alignments
  4292   Metaspace::ergo_initialize();
  4287   Metaspace::ergo_initialize();
  4293 
  4288 
  4294   // Set bytecode rewriting flags
  4289   // Set bytecode rewriting flags