mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 14:11:36 +00:00
8300125: Serial: Remove unused Generation::reset_saved_marks
Reviewed-by: kbarrett, lkorinth
This commit is contained in:
parent
85d70acc6e
commit
4cd166ff27
@ -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");
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user