equal
deleted
inserted
replaced
346 static void set_use_compressed_oops(); |
346 static void set_use_compressed_oops(); |
347 static void set_use_compressed_klass_ptrs(); |
347 static void set_use_compressed_klass_ptrs(); |
348 static void select_gc(); |
348 static void select_gc(); |
349 static void set_ergonomics_flags(); |
349 static void set_ergonomics_flags(); |
350 static void set_shared_spaces_flags(); |
350 static void set_shared_spaces_flags(); |
351 static void set_gc_specific_flags(); |
|
352 // limits the given memory size by the maximum amount of memory this process is |
351 // limits the given memory size by the maximum amount of memory this process is |
353 // currently allowed to allocate or reserve. |
352 // currently allowed to allocate or reserve. |
354 static julong limit_by_allocatable_memory(julong size); |
353 static julong limit_by_allocatable_memory(julong size); |
355 // Setup heap size |
354 // Setup heap size |
356 static void set_heap_size(); |
355 static void set_heap_size(); |
458 // Apply ergonomics |
457 // Apply ergonomics |
459 static jint apply_ergo(); |
458 static jint apply_ergo(); |
460 // Adjusts the arguments after the OS have adjusted the arguments |
459 // Adjusts the arguments after the OS have adjusted the arguments |
461 static jint adjust_after_os(); |
460 static jint adjust_after_os(); |
462 |
461 |
|
462 static void set_gc_specific_flags(); |
463 static inline bool gc_selected(); // whether a gc has been selected |
463 static inline bool gc_selected(); // whether a gc has been selected |
464 static void select_gc_ergonomically(); |
464 static void select_gc_ergonomically(); |
465 |
465 |
466 // Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error |
466 // Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error |
467 // message is returned in the provided buffer. |
467 // message is returned in the provided buffer. |
472 static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio); |
472 static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio); |
473 |
473 |
474 // Check for consistency in the selection of the garbage collector. |
474 // Check for consistency in the selection of the garbage collector. |
475 static bool check_gc_consistency_user(); // Check user-selected gc |
475 static bool check_gc_consistency_user(); // Check user-selected gc |
476 static inline bool check_gc_consistency_ergo(); // Check ergonomic-selected gc |
476 static inline bool check_gc_consistency_ergo(); // Check ergonomic-selected gc |
477 static void check_deprecated_gcs(); |
|
478 static void check_deprecated_gc_flags(); |
477 static void check_deprecated_gc_flags(); |
479 // Check consistency or otherwise of VM argument settings |
478 // Check consistency or otherwise of VM argument settings |
480 static bool check_vm_args_consistency(); |
479 static bool check_vm_args_consistency(); |
481 // Check stack pages settings |
480 // Check stack pages settings |
482 static bool check_stack_pages(); |
481 static bool check_stack_pages(); |
614 // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid. |
613 // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid. |
615 static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen); |
614 static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen); |
616 }; |
615 }; |
617 |
616 |
618 bool Arguments::gc_selected() { |
617 bool Arguments::gc_selected() { |
619 return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC || |
618 return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC || UseSerialGC; |
620 UseParNewGC || UseSerialGC; |
|
621 } |
619 } |
622 |
620 |
623 bool Arguments::check_gc_consistency_ergo() { |
621 bool Arguments::check_gc_consistency_ergo() { |
624 return check_gc_consistency_user(); |
622 return check_gc_consistency_user(); |
625 } |
623 } |