src/share/vm/runtime/arguments.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/runtime

src/share/vm/runtime/arguments.hpp

Print this page
rev 5732 : [mq]: comments2


 427   static short  InterpretOnlyClassesNum;
 428   static short  InterpretOnlyClassesMax;
 429   static char** InterpretOnlyClasses;
 430   static bool*  InterpretOnlyAllMethods;
 431 
 432   static bool   CheckCompileOnly;
 433 
 434   static char*  SharedArchivePath;
 435 
 436  public:
 437   // Parses the arguments, first phase
 438   static jint parse(const JavaVMInitArgs* args);
 439   // Apply ergonomics
 440   static jint apply_ergo();
 441   // Adjusts the arguments after the OS have adjusted the arguments
 442   static jint adjust_after_os();
 443   // Check for consistency in the selection of the garbage collector.
 444   static bool check_gc_consistency();
 445   static void check_deprecated_gcs();
 446   static void check_deprecated_gc_flags();
 447   // Check consistecy or otherwise of VM argument settings
 448   static bool check_vm_args_consistency();
 449   // Check stack pages settings
 450   static bool check_stack_pages();
 451   // Used by os_solaris
 452   static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);
 453 
 454   static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; }
 455   // Return the maximum size a heap with compressed oops can take
 456   static size_t max_heap_for_compressed_oops();
 457 
 458   // return a char* array containing all options
 459   static char** jvm_flags_array()          { return _jvm_flags_array; }
 460   static char** jvm_args_array()           { return _jvm_args_array; }
 461   static int num_jvm_flags()               { return _num_jvm_flags; }
 462   static int num_jvm_args()                { return _num_jvm_args; }
 463   // return the arguments passed to the Java application
 464   static const char* java_command()        { return _java_command; }
 465 
 466   // print jvm_flags, jvm_args and java_command
 467   static void print_on(outputStream* st);


 477   static const char*    get_property(const char* key);
 478 
 479   // -Djava.vendor.url.bug
 480   static const char* java_vendor_url_bug()  { return _java_vendor_url_bug; }
 481 
 482   // -Dsun.java.launcher
 483   static const char* sun_java_launcher()    { return _sun_java_launcher; }
 484   // Was VM created by a Java launcher?
 485   static bool created_by_java_launcher();
 486   // Was VM created by the gamma Java launcher?
 487   static bool created_by_gamma_launcher();
 488   // -Dsun.java.launcher.pid
 489   static int sun_java_launcher_pid()        { return _sun_java_launcher_pid; }
 490 
 491   // -Xloggc:<file>, if not specified will be NULL
 492   static const char* gc_log_filename()      { return _gc_log_filename; }
 493 
 494   // -Xprof
 495   static bool has_profile()                 { return _has_profile; }
 496 
 497   // -Xms, -Xmx
 498   static uintx min_heap_size()              { return _min_heap_size; }
 499   static void  set_min_heap_size(uintx v)   { _min_heap_size = v;  }
 500 
 501   // -Xrun
 502   static AgentLibrary* libraries()          { return _libraryList.first(); }
 503   static bool init_libraries_at_startup()   { return !_libraryList.is_empty(); }
 504   static void convert_library_to_agent(AgentLibrary* lib)
 505                                             { _libraryList.remove(lib);
 506                                               _agentList.add(lib); }
 507 
 508   // -agentlib -agentpath
 509   static AgentLibrary* agents()             { return _agentList.first(); }
 510   static bool init_agents_at_startup()      { return !_agentList.is_empty(); }
 511 
 512   // abort, exit, vfprintf hooks
 513   static abort_hook_t    abort_hook()       { return _abort_hook; }
 514   static exit_hook_t     exit_hook()        { return _exit_hook; }
 515   static vfprintf_hook_t vfprintf_hook()    { return _vfprintf_hook; }
 516 
 517   static bool GetCheckCompileOnly ()        { return CheckCompileOnly; }




 427   static short  InterpretOnlyClassesNum;
 428   static short  InterpretOnlyClassesMax;
 429   static char** InterpretOnlyClasses;
 430   static bool*  InterpretOnlyAllMethods;
 431 
 432   static bool   CheckCompileOnly;
 433 
 434   static char*  SharedArchivePath;
 435 
 436  public:
 437   // Parses the arguments, first phase
 438   static jint parse(const JavaVMInitArgs* args);
 439   // Apply ergonomics
 440   static jint apply_ergo();
 441   // Adjusts the arguments after the OS have adjusted the arguments
 442   static jint adjust_after_os();
 443   // Check for consistency in the selection of the garbage collector.
 444   static bool check_gc_consistency();
 445   static void check_deprecated_gcs();
 446   static void check_deprecated_gc_flags();
 447   // Check consistency or otherwise of VM argument settings
 448   static bool check_vm_args_consistency();
 449   // Check stack pages settings
 450   static bool check_stack_pages();
 451   // Used by os_solaris
 452   static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);
 453 
 454   static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; }
 455   // Return the maximum size a heap with compressed oops can take
 456   static size_t max_heap_for_compressed_oops();
 457 
 458   // return a char* array containing all options
 459   static char** jvm_flags_array()          { return _jvm_flags_array; }
 460   static char** jvm_args_array()           { return _jvm_args_array; }
 461   static int num_jvm_flags()               { return _num_jvm_flags; }
 462   static int num_jvm_args()                { return _num_jvm_args; }
 463   // return the arguments passed to the Java application
 464   static const char* java_command()        { return _java_command; }
 465 
 466   // print jvm_flags, jvm_args and java_command
 467   static void print_on(outputStream* st);


 477   static const char*    get_property(const char* key);
 478 
 479   // -Djava.vendor.url.bug
 480   static const char* java_vendor_url_bug()  { return _java_vendor_url_bug; }
 481 
 482   // -Dsun.java.launcher
 483   static const char* sun_java_launcher()    { return _sun_java_launcher; }
 484   // Was VM created by a Java launcher?
 485   static bool created_by_java_launcher();
 486   // Was VM created by the gamma Java launcher?
 487   static bool created_by_gamma_launcher();
 488   // -Dsun.java.launcher.pid
 489   static int sun_java_launcher_pid()        { return _sun_java_launcher_pid; }
 490 
 491   // -Xloggc:<file>, if not specified will be NULL
 492   static const char* gc_log_filename()      { return _gc_log_filename; }
 493 
 494   // -Xprof
 495   static bool has_profile()                 { return _has_profile; }
 496 
 497   // -Xms
 498   static uintx min_heap_size()              { return _min_heap_size; }
 499   static void  set_min_heap_size(uintx v)   { _min_heap_size = v;  }
 500 
 501   // -Xrun
 502   static AgentLibrary* libraries()          { return _libraryList.first(); }
 503   static bool init_libraries_at_startup()   { return !_libraryList.is_empty(); }
 504   static void convert_library_to_agent(AgentLibrary* lib)
 505                                             { _libraryList.remove(lib);
 506                                               _agentList.add(lib); }
 507 
 508   // -agentlib -agentpath
 509   static AgentLibrary* agents()             { return _agentList.first(); }
 510   static bool init_agents_at_startup()      { return !_agentList.is_empty(); }
 511 
 512   // abort, exit, vfprintf hooks
 513   static abort_hook_t    abort_hook()       { return _abort_hook; }
 514   static exit_hook_t     exit_hook()        { return _exit_hook; }
 515   static vfprintf_hook_t vfprintf_hook()    { return _vfprintf_hook; }
 516 
 517   static bool GetCheckCompileOnly ()        { return CheckCompileOnly; }


src/share/vm/runtime/arguments.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File