--- old/src/hotspot/share/gc/shared/generation.hpp 2020-08-25 10:03:55.336531482 +0200 +++ new/src/hotspot/share/gc/shared/generation.hpp 2020-08-25 10:03:55.116527775 +0200 @@ -55,7 +55,6 @@ class CompactibleSpace; class ContiguousSpace; class CompactPoint; -class OopsInGenClosure; class OopClosure; class FastScanClosure; class GenCollectedHeap; @@ -102,13 +101,6 @@ // Initialize the generation. Generation(ReservedSpace rs, size_t initial_byte_size); - // Apply "cl->do_oop" to (the address of) (exactly) all the ref fields in - // "sp" that point into younger generations. - // The iteration is only over objects allocated at the start of the - // iterations; objects allocated as a result of applying the closure are - // not included. - void younger_refs_in_space_iterate(Space* sp, OopsInGenClosure* cl, uint n_threads); - public: // The set of possible generation kinds. enum Name { @@ -449,12 +441,6 @@ // each. virtual void object_iterate(ObjectClosure* cl); - // Apply "cl->do_oop" to (the address of) all and only all the ref fields - // in the current generation that contain pointers to objects in younger - // generations. Objects allocated since the last "save_marks" call are - // excluded. - virtual void younger_refs_iterate(OopsInGenClosure* cl, uint n_threads) = 0; - // Inform a generation that it longer contains references to objects // in any younger generation. [e.g. Because younger gens are empty, // clear the card table.]