< prev index next >

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

Print this page

        

*** 102,130 **** #if INCLUDE_SERIALGC // 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 <class T> 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 class FastScanClosure: public OopsInClassLoaderDataOrGenClosure { protected: DefNewGeneration* _g; HeapWord* _boundary; bool _gc_barrier; --- 102,113 ---- #if INCLUDE_SERIALGC // Closure for scanning DefNewGeneration. // // This closure only performs barrier store calls on ! // pointers into the DefNewGeneration. class FastScanClosure: public OopsInClassLoaderDataOrGenClosure { protected: DefNewGeneration* _g; HeapWord* _boundary; bool _gc_barrier;
*** 166,178 **** }; #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. class ScanWeakRefClosure: public OopClosure { protected: DefNewGeneration* _g; HeapWord* _boundary; template <class T> inline void do_oop_work(T* p); --- 149,160 ---- }; #if INCLUDE_SERIALGC // Closure for scanning DefNewGeneration's weak references. ! // -- weak references are processed all at once, ! // with no notion of which generation they were in. class ScanWeakRefClosure: public OopClosure { protected: DefNewGeneration* _g; HeapWord* _boundary; template <class T> inline void do_oop_work(T* p);
< prev index next >