8301148: Serial: Remove ContiguousSpace::reset_saved_mark

Reviewed-by: kbarrett, tschatzl
This commit is contained in:
Albert Mingkun Yang 2023-01-30 11:49:26 +00:00
parent c672ed16f3
commit 82df4a2aee
2 changed files with 0 additions and 2 deletions

View File

@ -322,7 +322,6 @@ TenuredGeneration::TenuredGeneration(ReservedSpace rs,
HeapWord* bottom = (HeapWord*) _virtual_space.low();
HeapWord* end = (HeapWord*) _virtual_space.high();
_the_space = new TenuredSpace(_bts, MemRegion(bottom, end));
_the_space->reset_saved_mark();
// If we don't shrink the heap in steps, '_shrink_factor' is always 100%.
_shrink_factor = ShrinkHeapInSteps ? 0 : 100;
_capacity_at_prologue = 0;

View File

@ -425,7 +425,6 @@ class ContiguousSpace: public CompactibleSpace {
void set_top(HeapWord* value) { _top = value; }
void set_saved_mark() { _saved_mark_word = top(); }
void reset_saved_mark() { _saved_mark_word = bottom(); }
bool saved_mark_at_top() const { return saved_mark_word() == top(); }