src/share/vm/runtime/arguments.hpp

Print this page




 355   // Bytecode rewriting
 356   static void set_bytecode_flags();
 357 
 358   // Invocation API hooks
 359   static abort_hook_t     _abort_hook;
 360   static exit_hook_t      _exit_hook;
 361   static vfprintf_hook_t  _vfprintf_hook;
 362 
 363   // System properties
 364   static bool add_property(const char* prop);
 365 
 366   // Aggressive optimization flags.
 367   static void set_aggressive_opts_flags();
 368 
 369   // Argument parsing
 370   static void do_pd_flag_adjustments();
 371   static bool parse_argument(const char* arg, Flag::Flags origin);
 372   static bool process_argument(const char* arg, jboolean ignore_unrecognized, Flag::Flags origin);
 373   static void process_java_launcher_argument(const char*, void*);
 374   static void process_java_compiler_argument(char* arg);














 375   static jint parse_options_environment_variable(const char* name, SysClassPath* scp_p, bool* scp_assembly_required_p);
 376   static jint parse_java_tool_options_environment_variable(SysClassPath* scp_p, bool* scp_assembly_required_p);
 377   static jint parse_java_options_environment_variable(SysClassPath* scp_p, bool* scp_assembly_required_p);
 378   static jint parse_vm_init_args(const JavaVMInitArgs* args);
 379   static jint parse_each_vm_init_arg(const JavaVMInitArgs* args, SysClassPath* scp_p, bool* scp_assembly_required_p, Flag::Flags origin);
 380   static jint finalize_vm_init_args(SysClassPath* scp_p, bool scp_assembly_required);
 381   static bool is_bad_option(const JavaVMOption* option, jboolean ignore, const char* option_type);
 382 
 383   static bool is_bad_option(const JavaVMOption* option, jboolean ignore) {
 384     return is_bad_option(option, ignore, NULL);
 385   }
 386 
 387   static bool is_percentage(uintx val) {
 388     return val <= 100;
 389   }
 390 
 391   static bool verify_interval(uintx val, uintx min,
 392                               uintx max, const char* name);
 393   static bool verify_min_value(intx val, intx min, const char* name);
 394   static bool verify_percentage(uintx value, const char* name);




 355   // Bytecode rewriting
 356   static void set_bytecode_flags();
 357 
 358   // Invocation API hooks
 359   static abort_hook_t     _abort_hook;
 360   static exit_hook_t      _exit_hook;
 361   static vfprintf_hook_t  _vfprintf_hook;
 362 
 363   // System properties
 364   static bool add_property(const char* prop);
 365 
 366   // Aggressive optimization flags.
 367   static void set_aggressive_opts_flags();
 368 
 369   // Argument parsing
 370   static void do_pd_flag_adjustments();
 371   static bool parse_argument(const char* arg, Flag::Flags origin);
 372   static bool process_argument(const char* arg, jboolean ignore_unrecognized, Flag::Flags origin);
 373   static void process_java_launcher_argument(const char*, void*);
 374   static void process_java_compiler_argument(char* arg);
 375 
 376   // Options file processing
 377   static jint alloc_JVM_options_list(const int needed_slots, const int version,
 378                                      struct JavaVMInitArgs **ret_args_head);
 379   static jint copy_JVM_options_from_buf(const char *buffer,
 380                                         const size_t buf_size,
 381                                         const int num_slots,
 382                                         int *num_slots_used,
 383                                         struct JavaVMOption *new_options);
 384   static jint merge_JVM_options_file(const struct JavaVMInitArgs *argsin,
 385                                      struct JavaVMInitArgs **argsout);
 386   static jint parse_JVM_options_file(const char *file_name,
 387                                      char **buff, size_t *bytes, int *opt_cnt);
 388 
 389   static jint parse_options_environment_variable(const char* name, SysClassPath* scp_p, bool* scp_assembly_required_p);
 390   static jint parse_java_tool_options_environment_variable(SysClassPath* scp_p, bool* scp_assembly_required_p);
 391   static jint parse_java_options_environment_variable(SysClassPath* scp_p, bool* scp_assembly_required_p);
 392   static jint parse_vm_init_args(const JavaVMInitArgs* args);
 393   static jint parse_each_vm_init_arg(const JavaVMInitArgs* args, SysClassPath* scp_p, bool* scp_assembly_required_p, Flag::Flags origin);
 394   static jint finalize_vm_init_args(SysClassPath* scp_p, bool scp_assembly_required);
 395   static bool is_bad_option(const JavaVMOption* option, jboolean ignore, const char* option_type);
 396 
 397   static bool is_bad_option(const JavaVMOption* option, jboolean ignore) {
 398     return is_bad_option(option, ignore, NULL);
 399   }
 400 
 401   static bool is_percentage(uintx val) {
 402     return val <= 100;
 403   }
 404 
 405   static bool verify_interval(uintx val, uintx min,
 406                               uintx max, const char* name);
 407   static bool verify_min_value(intx val, intx min, const char* name);
 408   static bool verify_percentage(uintx value, const char* name);