449 static int get_min_number_of_compiler_threads(); 450 451 // Scale compile thresholds 452 // Returns threshold scaled with CompileThresholdScaling 453 static intx scaled_compile_threshold(intx threshold, double scale); 454 static intx scaled_compile_threshold(intx threshold) { 455 return scaled_compile_threshold(threshold, CompileThresholdScaling); 456 } 457 // Returns freq_log scaled with CompileThresholdScaling 458 static intx scaled_freq_log(intx freq_log, double scale); 459 static intx scaled_freq_log(intx freq_log) { 460 return scaled_freq_log(freq_log, CompileThresholdScaling); 461 } 462 463 // Parses the arguments, first phase 464 static jint parse(const JavaVMInitArgs* args); 465 // Apply ergonomics 466 static jint apply_ergo(); 467 // Adjusts the arguments after the OS have adjusted the arguments 468 static jint adjust_after_os(); 469 // Set any arguments that need to be set after the final range and constraint check 470 static void post_final_range_and_constraint_check(bool check_passed); 471 472 static void set_gc_specific_flags(); 473 static inline bool gc_selected(); // whether a gc has been selected 474 static void select_gc_ergonomically(); 475 476 // Check for consistency in the selection of the garbage collector. 477 static bool check_gc_consistency(); // Check user-selected gc 478 static void check_deprecated_gc_flags(); 479 // Check consistency or otherwise of VM argument settings 480 static bool check_vm_args_consistency(); 481 // Used by os_solaris 482 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); 483 484 static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; } 485 // Return the maximum size a heap with compressed oops can take 486 static size_t max_heap_for_compressed_oops(); 487 488 // return a char* array containing all options 489 static char** jvm_flags_array() { return _jvm_flags_array; } 490 static char** jvm_args_array() { return _jvm_args_array; } | 449 static int get_min_number_of_compiler_threads(); 450 451 // Scale compile thresholds 452 // Returns threshold scaled with CompileThresholdScaling 453 static intx scaled_compile_threshold(intx threshold, double scale); 454 static intx scaled_compile_threshold(intx threshold) { 455 return scaled_compile_threshold(threshold, CompileThresholdScaling); 456 } 457 // Returns freq_log scaled with CompileThresholdScaling 458 static intx scaled_freq_log(intx freq_log, double scale); 459 static intx scaled_freq_log(intx freq_log) { 460 return scaled_freq_log(freq_log, CompileThresholdScaling); 461 } 462 463 // Parses the arguments, first phase 464 static jint parse(const JavaVMInitArgs* args); 465 // Apply ergonomics 466 static jint apply_ergo(); 467 // Adjusts the arguments after the OS have adjusted the arguments 468 static jint adjust_after_os(); 469 // Set any arguments that need to be set after the 'CommandLineFlagConstraint::AfterErgo' constraint check 470 static void post_after_ergo_constraint_check(); 471 472 static void set_gc_specific_flags(); 473 static inline bool gc_selected(); // whether a gc has been selected 474 static void select_gc_ergonomically(); 475 476 // Check for consistency in the selection of the garbage collector. 477 static bool check_gc_consistency(); // Check user-selected gc 478 static void check_deprecated_gc_flags(); 479 // Check consistency or otherwise of VM argument settings 480 static bool check_vm_args_consistency(); 481 // Used by os_solaris 482 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); 483 484 static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; } 485 // Return the maximum size a heap with compressed oops can take 486 static size_t max_heap_for_compressed_oops(); 487 488 // return a char* array containing all options 489 static char** jvm_flags_array() { return _jvm_flags_array; } 490 static char** jvm_args_array() { return _jvm_args_array; } |