--- old/src/hotspot/share/gc/shared/genOopClosures.hpp 2020-08-24 15:28:16.370121122 +0200 +++ new/src/hotspot/share/gc/shared/genOopClosures.hpp 2020-08-24 15:28:16.190117872 +0200 @@ -104,25 +104,8 @@ // Closure for scanning DefNewGeneration. // -// This closure will perform barrier store calls for ALL -// pointers in scanned oops. -class ScanClosure: public OopsInClassLoaderDataOrGenClosure { - private: - DefNewGeneration* _g; - HeapWord* _boundary; - bool _gc_barrier; - template inline void do_oop_work(T* p); - public: - ScanClosure(DefNewGeneration* g, bool gc_barrier); - virtual void do_oop(oop* p); - virtual void do_oop(narrowOop* p); -}; - -// Closure for scanning DefNewGeneration. -// // This closure only performs barrier store calls on -// pointers into the DefNewGeneration. This is less -// precise, but faster, than a ScanClosure +// pointers into the DefNewGeneration. class FastScanClosure: public OopsInClassLoaderDataOrGenClosure { protected: DefNewGeneration* _g; @@ -168,9 +151,8 @@ #if INCLUDE_SERIALGC // Closure for scanning DefNewGeneration's weak references. -// NOTE: very much like ScanClosure but not derived from -// OopsInGenClosure -- weak references are processed all -// at once, with no notion of which generation they were in. +// -- weak references are processed all at once, +// with no notion of which generation they were in. class ScanWeakRefClosure: public OopClosure { protected: DefNewGeneration* _g;