486 static intx scaled_compile_threshold(intx threshold) { 487 return scaled_compile_threshold(threshold, CompileThresholdScaling); 488 } 489 // Returns freq_log scaled with CompileThresholdScaling 490 static intx scaled_freq_log(intx freq_log, double scale); 491 static intx scaled_freq_log(intx freq_log) { 492 return scaled_freq_log(freq_log, CompileThresholdScaling); 493 } 494 495 // Parses the arguments, first phase 496 static jint parse(const JavaVMInitArgs* args); 497 // Apply ergonomics 498 static jint apply_ergo(); 499 // Adjusts the arguments after the OS have adjusted the arguments 500 static jint adjust_after_os(); 501 502 static void set_gc_specific_flags(); 503 static inline bool gc_selected(); // whether a gc has been selected 504 static void select_gc_ergonomically(); 505 506 // Check for consistency in the selection of the garbage collector. 507 static bool check_gc_consistency(); // Check user-selected gc 508 // Check consistency or otherwise of VM argument settings 509 static bool check_vm_args_consistency(); 510 // Used by os_solaris 511 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); 512 513 static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; } 514 // Return the maximum size a heap with compressed oops can take 515 static size_t max_heap_for_compressed_oops(); 516 517 // return a char* array containing all options 518 static char** jvm_flags_array() { return _jvm_flags_array; } 519 static char** jvm_args_array() { return _jvm_args_array; } 520 static int num_jvm_flags() { return _num_jvm_flags; } 521 static int num_jvm_args() { return _num_jvm_args; } 522 // return the arguments passed to the Java application 523 static const char* java_command() { return _java_command; } 524 525 // print jvm_flags, jvm_args and java_command | 486 static intx scaled_compile_threshold(intx threshold) { 487 return scaled_compile_threshold(threshold, CompileThresholdScaling); 488 } 489 // Returns freq_log scaled with CompileThresholdScaling 490 static intx scaled_freq_log(intx freq_log, double scale); 491 static intx scaled_freq_log(intx freq_log) { 492 return scaled_freq_log(freq_log, CompileThresholdScaling); 493 } 494 495 // Parses the arguments, first phase 496 static jint parse(const JavaVMInitArgs* args); 497 // Apply ergonomics 498 static jint apply_ergo(); 499 // Adjusts the arguments after the OS have adjusted the arguments 500 static jint adjust_after_os(); 501 502 static void set_gc_specific_flags(); 503 static inline bool gc_selected(); // whether a gc has been selected 504 static void select_gc_ergonomically(); 505 506 // Check jvmci flag consistency 507 #if INCLUDE_JVMCI 508 static bool check_jvmci_flag_consistency(); 509 #endif 510 511 // Check for consistency in the selection of the garbage collector. 512 static bool check_gc_consistency(); // Check user-selected gc 513 // Check consistency or otherwise of VM argument settings 514 static bool check_vm_args_consistency(); 515 // Used by os_solaris 516 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); 517 518 static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; } 519 // Return the maximum size a heap with compressed oops can take 520 static size_t max_heap_for_compressed_oops(); 521 522 // return a char* array containing all options 523 static char** jvm_flags_array() { return _jvm_flags_array; } 524 static char** jvm_args_array() { return _jvm_args_array; } 525 static int num_jvm_flags() { return _num_jvm_flags; } 526 static int num_jvm_args() { return _num_jvm_args; } 527 // return the arguments passed to the Java application 528 static const char* java_command() { return _java_command; } 529 530 // print jvm_flags, jvm_args and java_command |