Skip to content

Commit ac760c7

Browse files
committed
8266295: Remove unused _concurrent_iteration_safe_limit
Reviewed-by: tschatzl, sjohanss
1 parent b42d496 commit ac760c7

File tree

4 files changed

+1
-22
lines changed

4 files changed

+1
-22
lines changed

src/hotspot/share/gc/serial/defNewGeneration.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,6 @@ void DefNewGeneration::collect(bool full,
650650
}
651651
// We should have processed and cleared all the preserved marks.
652652
_preserved_marks_set.reclaim();
653-
// set new iteration safe limit for the survivor spaces
654-
from()->set_concurrent_iteration_safe_limit(from()->top());
655-
to()->set_concurrent_iteration_safe_limit(to()->top());
656653

657654
heap->trace_heap_after_gc(&gc_tracer);
658655

src/hotspot/share/gc/shared/space.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,7 @@ void Space::clear(bool mangle_space) {
264264
}
265265
}
266266

267-
ContiguousSpace::ContiguousSpace(): CompactibleSpace(), _top(NULL),
268-
_concurrent_iteration_safe_limit(NULL) {
267+
ContiguousSpace::ContiguousSpace(): CompactibleSpace(), _top(NULL) {
269268
_mangler = new GenSpaceMangler(this);
270269
}
271270

@@ -278,7 +277,6 @@ void ContiguousSpace::initialize(MemRegion mr,
278277
bool mangle_space)
279278
{
280279
CompactibleSpace::initialize(mr, clear_space, mangle_space);
281-
set_concurrent_iteration_safe_limit(top());
282280
}
283281

284282
void ContiguousSpace::clear(bool mangle_space) {

src/hotspot/share/gc/shared/space.hpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ class ContiguousSpace: public CompactibleSpace {
499499

500500
protected:
501501
HeapWord* _top;
502-
HeapWord* _concurrent_iteration_safe_limit;
503502
// A helper for mangling the unused area of the space in debug builds.
504503
GenSpaceMangler* _mangler;
505504

@@ -564,24 +563,10 @@ class ContiguousSpace: public CompactibleSpace {
564563
void oop_iterate(OopIterateClosure* cl);
565564
void object_iterate(ObjectClosure* blk);
566565

567-
HeapWord* concurrent_iteration_safe_limit() {
568-
assert(_concurrent_iteration_safe_limit <= top(),
569-
"_concurrent_iteration_safe_limit update missed");
570-
return _concurrent_iteration_safe_limit;
571-
}
572-
// changes the safe limit, all objects from bottom() to the new
573-
// limit should be properly initialized
574-
void set_concurrent_iteration_safe_limit(HeapWord* new_limit) {
575-
assert(new_limit <= top(), "uninitialized objects in the safe range");
576-
_concurrent_iteration_safe_limit = new_limit;
577-
}
578-
579566
// Compaction support
580567
virtual void reset_after_compaction() {
581568
assert(compaction_top() >= bottom() && compaction_top() <= end(), "should point inside space");
582569
set_top(compaction_top());
583-
// set new iteration safe limit
584-
set_concurrent_iteration_safe_limit(compaction_top());
585570
}
586571

587572
// Override.

src/hotspot/share/gc/shared/vmStructs_gc.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@
130130
nonstatic_field(CompactibleSpace, _end_of_live, HeapWord*) \
131131
\
132132
nonstatic_field(ContiguousSpace, _top, HeapWord*) \
133-
nonstatic_field(ContiguousSpace, _concurrent_iteration_safe_limit, HeapWord*) \
134133
nonstatic_field(ContiguousSpace, _saved_mark_word, HeapWord*) \
135134
\
136135
nonstatic_field(Generation, _reserved, MemRegion) \

0 commit comments

Comments
 (0)