524 // Returns threshold scaled with CompileThresholdScaling 525 static intx scaled_compile_threshold(intx threshold, double scale); 526 static intx scaled_compile_threshold(intx threshold) { 527 return scaled_compile_threshold(threshold, CompileThresholdScaling); 528 } 529 // Returns freq_log scaled with CompileThresholdScaling 530 static intx scaled_freq_log(intx freq_log, double scale); 531 static intx scaled_freq_log(intx freq_log) { 532 return scaled_freq_log(freq_log, CompileThresholdScaling); 533 } 534 535 // Parses the arguments, first phase 536 static jint parse(const JavaVMInitArgs* args); 537 // Apply ergonomics 538 static jint apply_ergo(); 539 // Adjusts the arguments after the OS have adjusted the arguments 540 static jint adjust_after_os(); 541 542 static void set_gc_specific_flags(); 543 #if INCLUDE_JVMCI 544 // Check consistency of jvmci vm argument settings. 545 static bool check_jvmci_args_consistency(); 546 static void set_jvmci_specific_flags(); 547 #endif 548 // Check for consistency in the selection of the garbage collector. 549 static bool check_gc_consistency(); // Check user-selected gc 550 // Check consistency or otherwise of VM argument settings 551 static bool check_vm_args_consistency(); 552 // Used by os_solaris 553 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); 554 555 static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; } 556 // Return the maximum size a heap with compressed oops can take 557 static size_t max_heap_for_compressed_oops(); 558 559 // return a char* array containing all options 560 static char** jvm_flags_array() { return _jvm_flags_array; } 561 static char** jvm_args_array() { return _jvm_args_array; } 562 static int num_jvm_flags() { return _num_jvm_flags; } 563 static int num_jvm_args() { return _num_jvm_args; } | 524 // Returns threshold scaled with CompileThresholdScaling 525 static intx scaled_compile_threshold(intx threshold, double scale); 526 static intx scaled_compile_threshold(intx threshold) { 527 return scaled_compile_threshold(threshold, CompileThresholdScaling); 528 } 529 // Returns freq_log scaled with CompileThresholdScaling 530 static intx scaled_freq_log(intx freq_log, double scale); 531 static intx scaled_freq_log(intx freq_log) { 532 return scaled_freq_log(freq_log, CompileThresholdScaling); 533 } 534 535 // Parses the arguments, first phase 536 static jint parse(const JavaVMInitArgs* args); 537 // Apply ergonomics 538 static jint apply_ergo(); 539 // Adjusts the arguments after the OS have adjusted the arguments 540 static jint adjust_after_os(); 541 542 static void set_gc_specific_flags(); 543 #if INCLUDE_JVMCI 544 static bool _force_init_jvmci_runtime; 545 static void set_force_init_jvmci_runtime() {_force_init_jvmci_runtime = true; } 546 static bool is_force_init_jvmci_runtime() { return _force_init_jvmci_runtime; } 547 // Check consistency of jvmci vm argument settings. 548 static bool check_jvmci_args_consistency(); 549 static void set_jvmci_specific_flags(); 550 #endif 551 // Check for consistency in the selection of the garbage collector. 552 static bool check_gc_consistency(); // Check user-selected gc 553 // Check consistency or otherwise of VM argument settings 554 static bool check_vm_args_consistency(); 555 // Used by os_solaris 556 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); 557 558 static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; } 559 // Return the maximum size a heap with compressed oops can take 560 static size_t max_heap_for_compressed_oops(); 561 562 // return a char* array containing all options 563 static char** jvm_flags_array() { return _jvm_flags_array; } 564 static char** jvm_args_array() { return _jvm_args_array; } 565 static int num_jvm_flags() { return _num_jvm_flags; } 566 static int num_jvm_args() { return _num_jvm_args; } |