hotspot/src/share/vm/gc/shared/cardGeneration.hpp
changeset 33212 906b3d079b13
parent 31358 693058672cc6
equal deleted inserted replaced
33211:966a1acb1243 33212:906b3d079b13
    35 
    35 
    36 class CardGeneration: public Generation {
    36 class CardGeneration: public Generation {
    37   friend class VMStructs;
    37   friend class VMStructs;
    38  protected:
    38  protected:
    39   // This is shared with other generations.
    39   // This is shared with other generations.
    40   GenRemSet* _rs;
    40   CardTableRS* _rs;
    41   // This is local to this generation.
    41   // This is local to this generation.
    42   BlockOffsetSharedArray* _bts;
    42   BlockOffsetSharedArray* _bts;
    43 
    43 
    44   // Current shrinking effect: this damps shrinking when the heap gets empty.
    44   // Current shrinking effect: this damps shrinking when the heap gets empty.
    45   size_t _shrink_factor;
    45   size_t _shrink_factor;
    50   // These are gathered in the gc_prologue (and should_collect)
    50   // These are gathered in the gc_prologue (and should_collect)
    51   // to control growing/shrinking policy in spite of promotions.
    51   // to control growing/shrinking policy in spite of promotions.
    52   size_t _capacity_at_prologue;
    52   size_t _capacity_at_prologue;
    53   size_t _used_at_prologue;
    53   size_t _used_at_prologue;
    54 
    54 
    55   CardGeneration(ReservedSpace rs, size_t initial_byte_size, GenRemSet* remset);
    55   CardGeneration(ReservedSpace rs, size_t initial_byte_size, CardTableRS* remset);
    56 
    56 
    57   virtual void assert_correct_size_change_locking() = 0;
    57   virtual void assert_correct_size_change_locking() = 0;
    58 
    58 
    59   virtual CompactibleSpace* space() const = 0;
    59   virtual CompactibleSpace* space() const = 0;
    60 
    60