472 // low pause collector be used. 473 static bool should_auto_select_low_pause_collector(); 474 475 // Bytecode rewriting 476 static void set_bytecode_flags(); 477 478 // Invocation API hooks 479 static abort_hook_t _abort_hook; 480 static exit_hook_t _exit_hook; 481 static vfprintf_hook_t _vfprintf_hook; 482 483 // System properties 484 static bool add_property(const char* prop, PropertyWriteable writeable=WriteableProperty, 485 PropertyInternal internal=ExternalProperty); 486 487 static bool create_property(const char* prop_name, const char* prop_value, PropertyInternal internal); 488 static bool create_numbered_property(const char* prop_base_name, const char* prop_value, unsigned int count); 489 490 static int process_patch_mod_option(const char* patch_mod_tail, bool* patch_mod_javabase); 491 492 // Miscellaneous system property setter 493 static bool append_to_addmods_property(const char* module_name); 494 495 // Aggressive optimization flags. 496 static jint set_aggressive_opts_flags(); 497 498 static jint set_aggressive_heap_flags(); 499 500 // Argument parsing 501 static void do_pd_flag_adjustments(); 502 static bool parse_argument(const char* arg, Flag::Flags origin); 503 static bool process_argument(const char* arg, jboolean ignore_unrecognized, Flag::Flags origin); 504 static void process_java_launcher_argument(const char*, void*); 505 static void process_java_compiler_argument(const char* arg); 506 static jint parse_options_environment_variable(const char* name, ScopedVMInitArgs* vm_args); 507 static jint parse_java_tool_options_environment_variable(ScopedVMInitArgs* vm_args); 508 static jint parse_java_options_environment_variable(ScopedVMInitArgs* vm_args); 509 static jint parse_vm_options_file(const char* file_name, ScopedVMInitArgs* vm_args); 510 static jint parse_options_buffer(const char* name, char* buffer, const size_t buf_len, ScopedVMInitArgs* vm_args); 511 static jint insert_vm_options_file(const JavaVMInitArgs* args, 512 const char* vm_options_file, 513 const int vm_options_file_pos, 514 ScopedVMInitArgs* vm_options_file_args, | 472 // low pause collector be used. 473 static bool should_auto_select_low_pause_collector(); 474 475 // Bytecode rewriting 476 static void set_bytecode_flags(); 477 478 // Invocation API hooks 479 static abort_hook_t _abort_hook; 480 static exit_hook_t _exit_hook; 481 static vfprintf_hook_t _vfprintf_hook; 482 483 // System properties 484 static bool add_property(const char* prop, PropertyWriteable writeable=WriteableProperty, 485 PropertyInternal internal=ExternalProperty); 486 487 static bool create_property(const char* prop_name, const char* prop_value, PropertyInternal internal); 488 static bool create_numbered_property(const char* prop_base_name, const char* prop_value, unsigned int count); 489 490 static int process_patch_mod_option(const char* patch_mod_tail, bool* patch_mod_javabase); 491 492 // Aggressive optimization flags. 493 static jint set_aggressive_opts_flags(); 494 495 static jint set_aggressive_heap_flags(); 496 497 // Argument parsing 498 static void do_pd_flag_adjustments(); 499 static bool parse_argument(const char* arg, Flag::Flags origin); 500 static bool process_argument(const char* arg, jboolean ignore_unrecognized, Flag::Flags origin); 501 static void process_java_launcher_argument(const char*, void*); 502 static void process_java_compiler_argument(const char* arg); 503 static jint parse_options_environment_variable(const char* name, ScopedVMInitArgs* vm_args); 504 static jint parse_java_tool_options_environment_variable(ScopedVMInitArgs* vm_args); 505 static jint parse_java_options_environment_variable(ScopedVMInitArgs* vm_args); 506 static jint parse_vm_options_file(const char* file_name, ScopedVMInitArgs* vm_args); 507 static jint parse_options_buffer(const char* name, char* buffer, const size_t buf_len, ScopedVMInitArgs* vm_args); 508 static jint insert_vm_options_file(const JavaVMInitArgs* args, 509 const char* vm_options_file, 510 const int vm_options_file_pos, 511 ScopedVMInitArgs* vm_options_file_args, |