Commit 86115c2 1 parent d038571 commit 86115c2 Copy full SHA for 86115c2
File tree 6 files changed +0
-46
lines changed
src/hotspot/share/gc/shared
6 files changed +0
-46
lines changed Original file line number Diff line number Diff line change @@ -832,11 +832,6 @@ bool GenCollectedHeap::is_in_partial_collection(const void* p) {
832
832
}
833
833
#endif
834
834
835
- void GenCollectedHeap::oop_iterate (OopIterateClosure* cl) {
836
- _young_gen->oop_iterate (cl);
837
- _old_gen->oop_iterate (cl);
838
- }
839
-
840
835
void GenCollectedHeap::object_iterate (ObjectClosure* cl) {
841
836
_young_gen->object_iterate (cl);
842
837
_old_gen->object_iterate (cl);
Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ class GenCollectedHeap : public CollectedHeap {
195
195
void prune_scavengable_nmethods ();
196
196
197
197
// Iteration functions.
198
- void oop_iterate (OopIterateClosure* cl);
199
198
void object_iterate (ObjectClosure* cl) override ;
200
199
201
200
// A CollectedHeap is divided into a dense sequence of "blocks"; that is,
Original file line number Diff line number Diff line change @@ -233,21 +233,6 @@ bool Generation::block_is_obj(const HeapWord* p) const {
233
233
return blk.is_obj ;
234
234
}
235
235
236
- class GenerationOopIterateClosure : public SpaceClosure {
237
- public:
238
- OopIterateClosure* _cl;
239
- virtual void do_space (Space* s) {
240
- s->oop_iterate (_cl);
241
- }
242
- GenerationOopIterateClosure (OopIterateClosure* cl) :
243
- _cl (cl) {}
244
- };
245
-
246
- void Generation::oop_iterate (OopIterateClosure* cl) {
247
- GenerationOopIterateClosure blk (cl);
248
- space_iterate (&blk);
249
- }
250
-
251
236
class GenerationObjIterateClosure : public SpaceClosure {
252
237
private:
253
238
ObjectClosure* _cl;
Original file line number Diff line number Diff line change @@ -322,10 +322,6 @@ class Generation: public CHeapObj<mtGC> {
322
322
323
323
// Iteration.
324
324
325
- // Iterate over all the ref-containing fields of all objects in the
326
- // generation, calling "cl.do_oop" on each.
327
- virtual void oop_iterate (OopIterateClosure* cl);
328
-
329
325
// Iterate over all objects in the generation, calling "cl.do_object" on
330
326
// each.
331
327
virtual void object_iterate (ObjectClosure* cl);
Original file line number Diff line number Diff line change @@ -518,26 +518,11 @@ void ContiguousSpace::verify() const {
518
518
}
519
519
}
520
520
521
- void Space::oop_iterate (OopIterateClosure* blk) {
522
- ObjectToOopClosure blk2 (blk);
523
- object_iterate (&blk2);
524
- }
525
-
526
521
bool Space::obj_is_alive (const HeapWord* p) const {
527
522
assert (block_is_obj (p), " The address should point to an object" );
528
523
return true ;
529
524
}
530
525
531
- void ContiguousSpace::oop_iterate (OopIterateClosure* blk) {
532
- if (is_empty ()) return ;
533
- HeapWord* obj_addr = bottom ();
534
- HeapWord* t = top ();
535
- // Could call objects iterate, but this is easier.
536
- while (obj_addr < t) {
537
- obj_addr += cast_to_oop (obj_addr)->oop_iterate_size (blk);
538
- }
539
- }
540
-
541
526
void ContiguousSpace::object_iterate (ObjectClosure* blk) {
542
527
if (is_empty ()) return ;
543
528
object_iterate_from (bottom (), blk);
Original file line number Diff line number Diff line change @@ -163,11 +163,6 @@ class Space: public CHeapObj<mtGC> {
163
163
virtual size_t used () const = 0;
164
164
virtual size_t free () const = 0;
165
165
166
- // Iterate over all the ref-containing fields of all objects in the
167
- // space, calling "cl.do_oop" on each. Fields in objects allocated by
168
- // applications of the closure are not included in the iteration.
169
- virtual void oop_iterate (OopIterateClosure* cl);
170
-
171
166
// Iterate over all objects in the space, calling "cl.do_object" on
172
167
// each. Objects allocated by applications of the closure are not
173
168
// included in the iteration.
@@ -444,7 +439,6 @@ class ContiguousSpace: public Space {
444
439
HeapWord* par_allocate (size_t word_size) override ;
445
440
446
441
// Iteration
447
- void oop_iterate (OopIterateClosure* cl) override ;
448
442
void object_iterate (ObjectClosure* blk) override ;
449
443
450
444
// Compaction support
You can’t perform that action at this time.
0 commit comments