src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp

changeset 7369
b840813adfcc
parent 7195
c02ec279b062
child 7535
7ae4e26cb1e0
child 7651
c132be0fb74d
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp	Wed Nov 19 14:21:09 2014 -0800
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp	Fri Nov 21 12:08:37 2014 +0100
     1.3 @@ -26,6 +26,7 @@
     1.4  #define SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTORPOLICY_HPP
     1.5  
     1.6  #include "gc_implementation/g1/collectionSetChooser.hpp"
     1.7 +#include "gc_implementation/g1/g1Allocator.hpp"
     1.8  #include "gc_implementation/g1/g1MMUTracker.hpp"
     1.9  #include "memory/collectorPolicy.hpp"
    1.10  
    1.11 @@ -803,7 +804,7 @@
    1.12  
    1.13    // If an expansion would be appropriate, because recent GC overhead had
    1.14    // exceeded the desired limit, return an amount to expand by.
    1.15 -  size_t expansion_amount();
    1.16 +  virtual size_t expansion_amount();
    1.17  
    1.18    // Print tracing information.
    1.19    void print_tracing_info() const;
    1.20 @@ -822,17 +823,9 @@
    1.21  
    1.22    size_t young_list_target_length() const { return _young_list_target_length; }
    1.23  
    1.24 -  bool is_young_list_full() {
    1.25 -    uint young_list_length = _g1->young_list()->length();
    1.26 -    uint young_list_target_length = _young_list_target_length;
    1.27 -    return young_list_length >= young_list_target_length;
    1.28 -  }
    1.29 +  bool is_young_list_full();
    1.30  
    1.31 -  bool can_expand_young_list() {
    1.32 -    uint young_list_length = _g1->young_list()->length();
    1.33 -    uint young_list_max_length = _young_list_max_length;
    1.34 -    return young_list_length < young_list_max_length;
    1.35 -  }
    1.36 +  bool can_expand_young_list();
    1.37  
    1.38    uint young_list_max_length() {
    1.39      return _young_list_max_length;

mercurial