8324207: Serial: Remove Space::set_saved_mark_word

Reviewed-by: tschatzl, stefank
This commit is contained in:
Albert Mingkun Yang 2024-01-23 09:40:09 +00:00
parent f5e6d111b1
commit 5acd37fa96
4 changed files with 1 additions and 7 deletions

@ -41,7 +41,6 @@ void DefNewGeneration::oop_since_save_marks_iterate(OopClosureType* cl) {
assert(from()->saved_mark_at_top(), "inv");
to()->oop_since_save_marks_iterate(cl);
to()->set_saved_mark();
}
#endif // SHARE_GC_SERIAL_DEFNEWGENERATION_INLINE_HPP

@ -68,8 +68,6 @@ bool TenuredGeneration::block_is_obj(const HeapWord* addr) const {
template <typename OopClosureType>
void TenuredGeneration::oop_since_save_marks_iterate(OopClosureType* blk) {
_the_space->oop_since_save_marks_iterate(blk);
save_marks();
}
#endif // SHARE_GC_SERIAL_TENUREDGENERATION_INLINE_HPP

@ -82,8 +82,6 @@ class Space: public CHeapObj<mtGC> {
HeapWord* saved_mark_word() const { return _saved_mark_word; }
void set_saved_mark_word(HeapWord* p) { _saved_mark_word = p; }
// Returns a subregion of the space containing only the allocated objects in
// the space.
virtual MemRegion used_region() const = 0;

@ -71,13 +71,12 @@ void ContiguousSpace::oop_since_save_marks_iterate(OopClosureType* blk) {
t = top();
while (p < t) {
Prefetch::write(p, interval);
debug_only(HeapWord* prev = p);
oop m = cast_to_oop(p);
p += m->oop_iterate_size(blk);
}
} while (t < top());
set_saved_mark_word(p);
set_saved_mark();
}
#endif // SHARE_GC_SHARED_SPACE_INLINE_HPP