equal
deleted
inserted
replaced
285 static const char* _gc_log_filename; |
285 static const char* _gc_log_filename; |
286 // Value of the conservative maximum heap alignment needed |
286 // Value of the conservative maximum heap alignment needed |
287 static size_t _conservative_max_heap_alignment; |
287 static size_t _conservative_max_heap_alignment; |
288 |
288 |
289 static uintx _min_heap_size; |
289 static uintx _min_heap_size; |
290 |
|
291 // Used to store original flag values |
|
292 static uintx _min_heap_free_ratio; |
|
293 static uintx _max_heap_free_ratio; |
|
294 |
290 |
295 // -Xrun arguments |
291 // -Xrun arguments |
296 static AgentLibraryList _libraryList; |
292 static AgentLibraryList _libraryList; |
297 static void add_init_library(const char* name, char* options) |
293 static void add_init_library(const char* name, char* options) |
298 { _libraryList.add(new AgentLibrary(name, options, false, NULL)); } |
294 { _libraryList.add(new AgentLibrary(name, options, false, NULL)); } |
461 static jint parse(const JavaVMInitArgs* args); |
457 static jint parse(const JavaVMInitArgs* args); |
462 // Apply ergonomics |
458 // Apply ergonomics |
463 static jint apply_ergo(); |
459 static jint apply_ergo(); |
464 // Adjusts the arguments after the OS have adjusted the arguments |
460 // Adjusts the arguments after the OS have adjusted the arguments |
465 static jint adjust_after_os(); |
461 static jint adjust_after_os(); |
466 // Set any arguments that need to be set after the 'CommandLineFlagConstraint::AfterErgo' constraint check |
|
467 static void post_after_ergo_constraint_check(bool check_passed); |
|
468 |
462 |
469 static void set_gc_specific_flags(); |
463 static void set_gc_specific_flags(); |
470 static inline bool gc_selected(); // whether a gc has been selected |
464 static inline bool gc_selected(); // whether a gc has been selected |
471 static void select_gc_ergonomically(); |
465 static void select_gc_ergonomically(); |
472 |
466 |
523 static bool has_profile() { return _has_profile; } |
517 static bool has_profile() { return _has_profile; } |
524 |
518 |
525 // -Xms |
519 // -Xms |
526 static size_t min_heap_size() { return _min_heap_size; } |
520 static size_t min_heap_size() { return _min_heap_size; } |
527 static void set_min_heap_size(size_t v) { _min_heap_size = v; } |
521 static void set_min_heap_size(size_t v) { _min_heap_size = v; } |
528 |
|
529 // Returns the original values of -XX:MinHeapFreeRatio and -XX:MaxHeapFreeRatio |
|
530 static uintx min_heap_free_ratio() { return _min_heap_free_ratio; } |
|
531 static uintx max_heap_free_ratio() { return _max_heap_free_ratio; } |
|
532 |
522 |
533 // -Xrun |
523 // -Xrun |
534 static AgentLibrary* libraries() { return _libraryList.first(); } |
524 static AgentLibrary* libraries() { return _libraryList.first(); } |
535 static bool init_libraries_at_startup() { return !_libraryList.is_empty(); } |
525 static bool init_libraries_at_startup() { return !_libraryList.is_empty(); } |
536 static void convert_library_to_agent(AgentLibrary* lib) |
526 static void convert_library_to_agent(AgentLibrary* lib) |