< prev index next >

hotspot/src/share/vm/runtime/arguments.hpp

Print this page
rev 7124 : 8073944: Simplify ArgumentsExt and remove unneeded functionallity
Reviewed-by: kbarrett, dholmes


 449   // Parses the arguments, first phase
 450   static jint parse(const JavaVMInitArgs* args);
 451   // Apply ergonomics
 452   static jint apply_ergo();
 453   // Adjusts the arguments after the OS have adjusted the arguments
 454   static jint adjust_after_os();
 455 
 456   static void set_gc_specific_flags();
 457   static inline bool gc_selected(); // whether a gc has been selected
 458   static void select_gc_ergonomically();
 459 
 460   // Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error
 461   // message is returned in the provided buffer.
 462   static bool verify_MinHeapFreeRatio(FormatBuffer<80>& err_msg, uintx min_heap_free_ratio);
 463 
 464   // Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error
 465   // message is returned in the provided buffer.
 466   static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio);
 467 
 468   // Check for consistency in the selection of the garbage collector.
 469   static bool check_gc_consistency_user();        // Check user-selected gc
 470   static inline bool check_gc_consistency_ergo(); // Check ergonomic-selected gc
 471   static void check_deprecated_gcs();
 472   static void check_deprecated_gc_flags();
 473   // Check consistecy or otherwise of VM argument settings
 474   static bool check_vm_args_consistency();
 475   // Check stack pages settings
 476   static bool check_stack_pages();
 477   // Used by os_solaris
 478   static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);
 479 
 480   static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; }
 481   // Return the maximum size a heap with compressed oops can take
 482   static size_t max_heap_for_compressed_oops();
 483 
 484   // return a char* array containing all options
 485   static char** jvm_flags_array()          { return _jvm_flags_array; }
 486   static char** jvm_args_array()           { return _jvm_args_array; }
 487   static int num_jvm_flags()               { return _num_jvm_flags; }
 488   static int num_jvm_args()                { return _num_jvm_args; }
 489   // return the arguments passed to the Java application
 490   static const char* java_command()        { return _java_command; }


 598   static char* get_meta_index_path() { return _meta_index_path; }
 599   static char* get_meta_index_dir()  { return _meta_index_dir;  }
 600   static char* get_ext_dirs() { return _java_ext_dirs->value(); }
 601   static char* get_appclasspath() { return _java_class_path->value(); }
 602   static void  fix_appclasspath();
 603 
 604   // Operation modi
 605   static Mode mode()                { return _mode; }
 606   static bool is_interpreter_only() { return mode() == _int; }
 607 
 608 
 609   // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
 610   static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);
 611 };
 612 
 613 bool Arguments::gc_selected() {
 614   return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC ||
 615     UseParNewGC || UseSerialGC;
 616 }
 617 
 618 bool Arguments::check_gc_consistency_ergo() {
 619   return check_gc_consistency_user();
 620 }
 621 
 622 #endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP


 449   // Parses the arguments, first phase
 450   static jint parse(const JavaVMInitArgs* args);
 451   // Apply ergonomics
 452   static jint apply_ergo();
 453   // Adjusts the arguments after the OS have adjusted the arguments
 454   static jint adjust_after_os();
 455 
 456   static void set_gc_specific_flags();
 457   static inline bool gc_selected(); // whether a gc has been selected
 458   static void select_gc_ergonomically();
 459 
 460   // Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error
 461   // message is returned in the provided buffer.
 462   static bool verify_MinHeapFreeRatio(FormatBuffer<80>& err_msg, uintx min_heap_free_ratio);
 463 
 464   // Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error
 465   // message is returned in the provided buffer.
 466   static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio);
 467 
 468   // Check for consistency in the selection of the garbage collector.
 469   static bool check_gc_consistency();        // Check user-selected gc

 470   static void check_deprecated_gcs();
 471   static void check_deprecated_gc_flags();
 472   // Check consistecy or otherwise of VM argument settings
 473   static bool check_vm_args_consistency();
 474   // Check stack pages settings
 475   static bool check_stack_pages();
 476   // Used by os_solaris
 477   static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);
 478 
 479   static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; }
 480   // Return the maximum size a heap with compressed oops can take
 481   static size_t max_heap_for_compressed_oops();
 482 
 483   // return a char* array containing all options
 484   static char** jvm_flags_array()          { return _jvm_flags_array; }
 485   static char** jvm_args_array()           { return _jvm_args_array; }
 486   static int num_jvm_flags()               { return _num_jvm_flags; }
 487   static int num_jvm_args()                { return _num_jvm_args; }
 488   // return the arguments passed to the Java application
 489   static const char* java_command()        { return _java_command; }


 597   static char* get_meta_index_path() { return _meta_index_path; }
 598   static char* get_meta_index_dir()  { return _meta_index_dir;  }
 599   static char* get_ext_dirs() { return _java_ext_dirs->value(); }
 600   static char* get_appclasspath() { return _java_class_path->value(); }
 601   static void  fix_appclasspath();
 602 
 603   // Operation modi
 604   static Mode mode()                { return _mode; }
 605   static bool is_interpreter_only() { return mode() == _int; }
 606 
 607 
 608   // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
 609   static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);
 610 };
 611 
 612 bool Arguments::gc_selected() {
 613   return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC ||
 614     UseParNewGC || UseSerialGC;
 615 }
 616 




 617 #endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP
< prev index next >