445 static int get_min_number_of_compiler_threads(); 446 447 // Scale compile thresholds 448 // Returns threshold scaled with CompileThresholdScaling 449 static intx scaled_compile_threshold(intx threshold, double scale); 450 static intx scaled_compile_threshold(intx threshold) { 451 return scaled_compile_threshold(threshold, CompileThresholdScaling); 452 } 453 // Returns freq_log scaled with CompileThresholdScaling 454 static intx scaled_freq_log(intx freq_log, double scale); 455 static intx scaled_freq_log(intx freq_log) { 456 return scaled_freq_log(freq_log, CompileThresholdScaling); 457 } 458 459 // Parses the arguments, first phase 460 static jint parse(const JavaVMInitArgs* args); 461 // Apply ergonomics 462 static jint apply_ergo(); 463 // Adjusts the arguments after the OS have adjusted the arguments 464 static jint adjust_after_os(); 465 // Set any arguments that need to be set after the final range and constraint check 466 static void post_final_range_and_constraint_check(bool check_passed); 467 468 static void set_gc_specific_flags(); 469 static inline bool gc_selected(); // whether a gc has been selected 470 static void select_gc_ergonomically(); 471 472 // Check for consistency in the selection of the garbage collector. 473 static bool check_gc_consistency(); // Check user-selected gc 474 static void check_deprecated_gc_flags(); 475 // Check consistency or otherwise of VM argument settings 476 static bool check_vm_args_consistency(); 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; } | 445 static int get_min_number_of_compiler_threads(); 446 447 // Scale compile thresholds 448 // Returns threshold scaled with CompileThresholdScaling 449 static intx scaled_compile_threshold(intx threshold, double scale); 450 static intx scaled_compile_threshold(intx threshold) { 451 return scaled_compile_threshold(threshold, CompileThresholdScaling); 452 } 453 // Returns freq_log scaled with CompileThresholdScaling 454 static intx scaled_freq_log(intx freq_log, double scale); 455 static intx scaled_freq_log(intx freq_log) { 456 return scaled_freq_log(freq_log, CompileThresholdScaling); 457 } 458 459 // Parses the arguments, first phase 460 static jint parse(const JavaVMInitArgs* args); 461 // Apply ergonomics 462 static jint apply_ergo(); 463 // Adjusts the arguments after the OS have adjusted the arguments 464 static jint adjust_after_os(); 465 // Set any arguments that need to be set after the 'CommandLineFlagConstraint::AfterErgo' constraint check 466 static void post_after_ergo_constraint_check(bool check_passed); 467 468 static void set_gc_specific_flags(); 469 static inline bool gc_selected(); // whether a gc has been selected 470 static void select_gc_ergonomically(); 471 472 // Check for consistency in the selection of the garbage collector. 473 static bool check_gc_consistency(); // Check user-selected gc 474 static void check_deprecated_gc_flags(); 475 // Check consistency or otherwise of VM argument settings 476 static bool check_vm_args_consistency(); 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; } |