8300125: Serial: Remove unused Generation::reset_saved_marks

Reviewed-by: kbarrett, lkorinth
This commit is contained in:
Albert Mingkun Yang 2023-01-17 15:41:23 +00:00
parent 85d70acc6e
commit 4cd166ff27
5 changed files with 2 additions and 17 deletions

View File

@ -772,13 +772,6 @@ void DefNewGeneration::save_marks() {
}
void DefNewGeneration::reset_saved_marks() {
eden()->reset_saved_mark();
to()->reset_saved_mark();
from()->reset_saved_mark();
}
bool DefNewGeneration::no_allocs_since_save_marks() {
assert(eden()->saved_mark_at_top(), "Violated spec - alloc in eden");
assert(from()->saved_mark_at_top(), "Violated spec - alloc in from");

View File

@ -278,7 +278,7 @@ protected:
// Accessing marks
void save_marks();
void reset_saved_marks();
bool no_allocs_since_save_marks();
// Need to declare the full complement of closures, whether we'll

View File

@ -500,10 +500,6 @@ void TenuredGeneration::save_marks() {
_the_space->set_saved_mark();
}
void TenuredGeneration::reset_saved_marks() {
_the_space->reset_saved_mark();
}
bool TenuredGeneration::no_allocs_since_save_marks() {
return _the_space->saved_mark_at_top();
}

View File

@ -132,7 +132,7 @@ class TenuredGeneration: public Generation {
void oop_since_save_marks_iterate(OopClosureType* cl);
void save_marks();
void reset_saved_marks();
bool no_allocs_since_save_marks();
inline size_t block_size(const HeapWord* addr) const;

View File

@ -333,10 +333,6 @@ class Generation: public CHeapObj<mtGC> {
// operations to be optimized.
virtual void save_marks() {}
// This function allows generations to initialize any "saved marks". That
// is, should only be called when the generation is empty.
virtual void reset_saved_marks() {}
// This function is "true" iff any no allocations have occurred in the
// generation since the last call to "save_marks".
virtual bool no_allocs_since_save_marks() = 0;