Skip to content

Commit

Permalink
8301148: Serial: Remove ContiguousSpace::reset_saved_mark
Browse files Browse the repository at this point in the history
Reviewed-by: kbarrett, tschatzl
  • Loading branch information
albertnetymk committed Jan 30, 2023
1 parent c672ed1 commit 82df4a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/hotspot/share/gc/serial/tenuredGeneration.cpp
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/gc/shared/space.hpp
Expand Up @@ -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(); }

Expand Down

1 comment on commit 82df4a2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.