From 82df4a2aee2eebcce6f3bec1c870f74f237e593b Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Mon, 30 Jan 2023 11:49:26 +0000 Subject: [PATCH] 8301148: Serial: Remove ContiguousSpace::reset_saved_mark Reviewed-by: kbarrett, tschatzl --- src/hotspot/share/gc/serial/tenuredGeneration.cpp | 1 - src/hotspot/share/gc/shared/space.hpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/hotspot/share/gc/serial/tenuredGeneration.cpp b/src/hotspot/share/gc/serial/tenuredGeneration.cpp index 15605214317..a440554de9e 100644 --- a/src/hotspot/share/gc/serial/tenuredGeneration.cpp +++ b/src/hotspot/share/gc/serial/tenuredGeneration.cpp @@ -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; diff --git a/src/hotspot/share/gc/shared/space.hpp b/src/hotspot/share/gc/shared/space.hpp index 99ba3b788b6..94d2f0651e0 100644 --- a/src/hotspot/share/gc/shared/space.hpp +++ b/src/hotspot/share/gc/shared/space.hpp @@ -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(); }