comparison src/share/vm/runtime/arguments.hpp @ 17474:6fa574bfd32a

Merge
author chegar
date Thu, 03 Oct 2013 19:13:12 +0100
parents 179cd89fb279
children 72b7e96c1922
comparison
equal deleted inserted replaced
17473:9b4ce069642e 17474:6fa574bfd32a
142 bool is_absolute_path() const { return _is_absolute_path; } 142 bool is_absolute_path() const { return _is_absolute_path; }
143 void* os_lib() const { return _os_lib; } 143 void* os_lib() const { return _os_lib; }
144 void set_os_lib(void* os_lib) { _os_lib = os_lib; } 144 void set_os_lib(void* os_lib) { _os_lib = os_lib; }
145 AgentLibrary* next() const { return _next; } 145 AgentLibrary* next() const { return _next; }
146 bool is_static_lib() const { return _is_static_lib; } 146 bool is_static_lib() const { return _is_static_lib; }
147 void set_static_lib(bool static_lib) { _is_static_lib = static_lib; } 147 void set_static_lib(bool is_static_lib) { _is_static_lib = is_static_lib; }
148 bool valid() { return (_state == agent_valid); } 148 bool valid() { return (_state == agent_valid); }
149 void set_valid() { _state = agent_valid; } 149 void set_valid() { _state = agent_valid; }
150 void set_invalid() { _state = agent_invalid; } 150 void set_invalid() { _state = agent_invalid; }
151 151
152 // Constructor 152 // Constructor
278 static bool _created_by_gamma_launcher; 278 static bool _created_by_gamma_launcher;
279 279
280 // Option flags 280 // Option flags
281 static bool _has_profile; 281 static bool _has_profile;
282 static const char* _gc_log_filename; 282 static const char* _gc_log_filename;
283 // Value of the conservative maximum heap alignment needed
284 static size_t _conservative_max_heap_alignment;
285
283 static uintx _min_heap_size; 286 static uintx _min_heap_size;
284 287
285 // -Xrun arguments 288 // -Xrun arguments
286 static AgentLibraryList _libraryList; 289 static AgentLibraryList _libraryList;
287 static void add_init_library(const char* name, char* options) 290 static void add_init_library(const char* name, char* options)
325 // UseParallel[Old]GC 328 // UseParallel[Old]GC
326 static void set_parallel_gc_flags(); 329 static void set_parallel_gc_flags();
327 // Garbage-First (UseG1GC) 330 // Garbage-First (UseG1GC)
328 static void set_g1_gc_flags(); 331 static void set_g1_gc_flags();
329 // GC ergonomics 332 // GC ergonomics
333 static void set_conservative_max_heap_alignment();
330 static void set_use_compressed_oops(); 334 static void set_use_compressed_oops();
331 static void set_use_compressed_klass_ptrs(); 335 static void set_use_compressed_klass_ptrs();
332 static void set_ergonomics_flags(); 336 static void set_ergonomics_flags();
333 static void set_shared_spaces_flags(); 337 static void set_shared_spaces_flags();
334 // limits the given memory size by the maximum amount of memory this process is 338 // limits the given memory size by the maximum amount of memory this process is
428 static bool CheckCompileOnly; 432 static bool CheckCompileOnly;
429 433
430 static char* SharedArchivePath; 434 static char* SharedArchivePath;
431 435
432 public: 436 public:
433 // Parses the arguments 437 // Parses the arguments, first phase
434 static jint parse(const JavaVMInitArgs* args); 438 static jint parse(const JavaVMInitArgs* args);
439 // Apply ergonomics
440 static jint apply_ergo();
435 // Adjusts the arguments after the OS have adjusted the arguments 441 // Adjusts the arguments after the OS have adjusted the arguments
436 static jint adjust_after_os(); 442 static jint adjust_after_os();
437 // Check for consistency in the selection of the garbage collector. 443 // Check for consistency in the selection of the garbage collector.
438 static bool check_gc_consistency(); 444 static bool check_gc_consistency();
439 static void check_deprecated_gcs(); 445 static void check_deprecated_gcs();
443 // Check stack pages settings 449 // Check stack pages settings
444 static bool check_stack_pages(); 450 static bool check_stack_pages();
445 // Used by os_solaris 451 // Used by os_solaris
446 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); 452 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);
447 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
448 // return a char* array containing all options 458 // return a char* array containing all options
449 static char** jvm_flags_array() { return _jvm_flags_array; } 459 static char** jvm_flags_array() { return _jvm_flags_array; }
450 static char** jvm_args_array() { return _jvm_args_array; } 460 static char** jvm_args_array() { return _jvm_args_array; }
451 static int num_jvm_flags() { return _num_jvm_flags; } 461 static int num_jvm_flags() { return _num_jvm_flags; }
452 static int num_jvm_args() { return _num_jvm_args; } 462 static int num_jvm_args() { return _num_jvm_args; }