comparison src/share/vm/runtime/arguments.hpp @ 20408:76af788b6c16

8057623: add an extension class for argument handling Reviewed-by: brutisso, mgerdin, tschatzl
author jcoomes
date Fri, 05 Sep 2014 12:36:37 -0700
parents 8ec8971f511a
children 0d78074d2444
comparison
equal deleted inserted replaced
20407:9be4ca335650 20408:76af788b6c16
463 // Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error 463 // Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error
464 // message is returned in the provided buffer. 464 // message is returned in the provided buffer.
465 static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio); 465 static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio);
466 466
467 // Check for consistency in the selection of the garbage collector. 467 // Check for consistency in the selection of the garbage collector.
468 static bool check_gc_consistency(); 468 static bool check_gc_consistency_user(); // Check user-selected gc
469 static inline bool check_gc_consistency_ergo(); // Check ergonomic-selected gc
469 static void check_deprecated_gcs(); 470 static void check_deprecated_gcs();
470 static void check_deprecated_gc_flags(); 471 static void check_deprecated_gc_flags();
471 // Check consistecy or otherwise of VM argument settings 472 // Check consistecy or otherwise of VM argument settings
472 static bool check_vm_args_consistency(); 473 static bool check_vm_args_consistency();
473 static bool check_vm_args_consistency_ext();
474 // Check stack pages settings 474 // Check stack pages settings
475 static bool check_stack_pages(); 475 static bool check_stack_pages();
476 // Used by os_solaris 476 // Used by os_solaris
477 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); 477 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);
478 478
609 609
610 bool Arguments::gc_selected() { 610 bool Arguments::gc_selected() {
611 return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC || 611 return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC ||
612 UseParNewGC || UseSerialGC; 612 UseParNewGC || UseSerialGC;
613 } 613 }
614
615 bool Arguments::check_gc_consistency_ergo() {
616 return check_gc_consistency_user();
617 }
618
614 #endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP 619 #endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP