hotspot/src/share/vm/runtime/arguments.hpp
changeset 19986 33d188c66ed9
parent 19732 88f375dd7d65
child 20006 9dc2add3103b
equal deleted inserted replaced
19983:82c1a95ae314 19986:33d188c66ed9
   278   static bool   _created_by_gamma_launcher;
   278   static bool   _created_by_gamma_launcher;
   279 
   279 
   280   // Option flags
   280   // Option flags
   281   static bool   _has_profile;
   281   static bool   _has_profile;
   282   static const char*  _gc_log_filename;
   282   static const char*  _gc_log_filename;
       
   283   // Value of the conservative maximum heap alignment needed
       
   284   static size_t  _conservative_max_heap_alignment;
       
   285 
   283   static uintx  _min_heap_size;
   286   static uintx  _min_heap_size;
   284 
   287 
   285   // -Xrun arguments
   288   // -Xrun arguments
   286   static AgentLibraryList _libraryList;
   289   static AgentLibraryList _libraryList;
   287   static void add_init_library(const char* name, char* options)
   290   static void add_init_library(const char* name, char* options)
   325   // UseParallel[Old]GC
   328   // UseParallel[Old]GC
   326   static void set_parallel_gc_flags();
   329   static void set_parallel_gc_flags();
   327   // Garbage-First (UseG1GC)
   330   // Garbage-First (UseG1GC)
   328   static void set_g1_gc_flags();
   331   static void set_g1_gc_flags();
   329   // GC ergonomics
   332   // GC ergonomics
       
   333   static void set_conservative_max_heap_alignment();
   330   static void set_use_compressed_oops();
   334   static void set_use_compressed_oops();
   331   static void set_use_compressed_klass_ptrs();
   335   static void set_use_compressed_klass_ptrs();
   332   static void set_ergonomics_flags();
   336   static void set_ergonomics_flags();
   333   static void set_shared_spaces_flags();
   337   static void set_shared_spaces_flags();
   334   // limits the given memory size by the maximum amount of memory this process is
   338   // limits the given memory size by the maximum amount of memory this process is
   428   static bool   CheckCompileOnly;
   432   static bool   CheckCompileOnly;
   429 
   433 
   430   static char*  SharedArchivePath;
   434   static char*  SharedArchivePath;
   431 
   435 
   432  public:
   436  public:
   433   // Parses the arguments
   437   // Parses the arguments, first phase
   434   static jint parse(const JavaVMInitArgs* args);
   438   static jint parse(const JavaVMInitArgs* args);
       
   439   // Apply ergonomics
       
   440   static jint apply_ergo();
   435   // Adjusts the arguments after the OS have adjusted the arguments
   441   // Adjusts the arguments after the OS have adjusted the arguments
   436   static jint adjust_after_os();
   442   static jint adjust_after_os();
   437   // Check for consistency in the selection of the garbage collector.
   443   // Check for consistency in the selection of the garbage collector.
   438   static bool check_gc_consistency();
   444   static bool check_gc_consistency();
   439   static void check_deprecated_gcs();
   445   static void check_deprecated_gcs();
   443   // Check stack pages settings
   449   // Check stack pages settings
   444   static bool check_stack_pages();
   450   static bool check_stack_pages();
   445   // Used by os_solaris
   451   // Used by os_solaris
   446   static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);
   452   static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);
   447 
   453 
       
   454   static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; }
       
   455   // Return the maximum size a heap with compressed oops can take
       
   456   static size_t max_heap_for_compressed_oops();
       
   457 
   448   // return a char* array containing all options
   458   // return a char* array containing all options
   449   static char** jvm_flags_array()          { return _jvm_flags_array; }
   459   static char** jvm_flags_array()          { return _jvm_flags_array; }
   450   static char** jvm_args_array()           { return _jvm_args_array; }
   460   static char** jvm_args_array()           { return _jvm_args_array; }
   451   static int num_jvm_flags()               { return _num_jvm_flags; }
   461   static int num_jvm_flags()               { return _num_jvm_flags; }
   452   static int num_jvm_args()                { return _num_jvm_args; }
   462   static int num_jvm_args()                { return _num_jvm_args; }