Print this page
rev 6911 : 8065305: Make it possible to extend the G1CollectorPolicy
Summary: Added a G1CollectorPolicyExt where it is possible to extend the class.
Reviewed-by: sjohanss, tschatzl

Split Split Close
Expand all
Collapse all
          --- old/hotspot/src/share/vm/runtime/arguments.hpp
          +++ new/hotspot/src/share/vm/runtime/arguments.hpp
↓ open down ↓ 334 lines elided ↑ open up ↑
 335  335    static void set_parallel_gc_flags();
 336  336    // Garbage-First (UseG1GC)
 337  337    static void set_g1_gc_flags();
 338  338    // GC ergonomics
 339  339    static void set_conservative_max_heap_alignment();
 340  340    static void set_use_compressed_oops();
 341  341    static void set_use_compressed_klass_ptrs();
 342  342    static void select_gc();
 343  343    static void set_ergonomics_flags();
 344  344    static void set_shared_spaces_flags();
 345      -  static void set_gc_specific_flags();
 346  345    // limits the given memory size by the maximum amount of memory this process is
 347  346    // currently allowed to allocate or reserve.
 348  347    static julong limit_by_allocatable_memory(julong size);
 349  348    // Setup heap size
 350  349    static void set_heap_size();
 351  350    // Based on automatic selection criteria, should the
 352  351    // low pause collector be used.
 353  352    static bool should_auto_select_low_pause_collector();
 354  353  
 355  354    // Bytecode rewriting
↓ open down ↓ 91 lines elided ↑ open up ↑
 447  446    static char*  SharedArchivePath;
 448  447  
 449  448   public:
 450  449    // Parses the arguments, first phase
 451  450    static jint parse(const JavaVMInitArgs* args);
 452  451    // Apply ergonomics
 453  452    static jint apply_ergo();
 454  453    // Adjusts the arguments after the OS have adjusted the arguments
 455  454    static jint adjust_after_os();
 456  455  
      456 +  static void set_gc_specific_flags();
 457  457    static inline bool gc_selected(); // whether a gc has been selected
 458  458    static void select_gc_ergonomically();
 459  459  
 460  460    // Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error
 461  461    // message is returned in the provided buffer.
 462  462    static bool verify_MinHeapFreeRatio(FormatBuffer<80>& err_msg, uintx min_heap_free_ratio);
 463  463  
 464  464    // Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error
 465  465    // message is returned in the provided buffer.
 466  466    static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio);
↓ open down ↓ 156 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX