equal
deleted
inserted
replaced
86 size_t _allowed_deadspace_words; |
86 size_t _allowed_deadspace_words; |
87 bool _active; |
87 bool _active; |
88 CompactibleSpace* _space; |
88 CompactibleSpace* _space; |
89 |
89 |
90 public: |
90 public: |
91 DeadSpacer(CompactibleSpace* space) : _space(space), _allowed_deadspace_words(0) { |
91 DeadSpacer(CompactibleSpace* space) : _allowed_deadspace_words(0), _space(space) { |
92 size_t ratio = _space->allowed_dead_ratio(); |
92 size_t ratio = _space->allowed_dead_ratio(); |
93 _active = ratio > 0; |
93 _active = ratio > 0; |
94 |
94 |
95 if (_active) { |
95 if (_active) { |
96 assert(!UseG1GC, "G1 should not be using dead space"); |
96 assert(!UseG1GC, "G1 should not be using dead space"); |