< prev index next >

src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.hpp

Print this page

        

@@ -931,21 +931,10 @@
   class IsAliveClosure: public BoolObjectClosure {
    public:
     virtual bool do_object_b(oop p);
   };
 
-  class KeepAliveClosure: public OopClosure {
-   private:
-    ParCompactionManager* _compaction_manager;
-   protected:
-    template <class T> inline void do_oop_work(T* p);
-   public:
-    KeepAliveClosure(ParCompactionManager* cm) : _compaction_manager(cm) { }
-    virtual void do_oop(oop* p);
-    virtual void do_oop(narrowOop* p);
-  };
-
   class FollowStackClosure: public VoidClosure {
    private:
     ParCompactionManager* _compaction_manager;
    public:
     FollowStackClosure(ParCompactionManager* cm) : _compaction_manager(cm) { }

@@ -965,11 +954,10 @@
   class AdjustKlassClosure : public KlassClosure {
    public:
     void do_klass(Klass* klass);
   };
 
-  friend class KeepAliveClosure;
   friend class FollowStackClosure;
   friend class AdjustPointerClosure;
   friend class AdjustKlassClosure;
   friend class FollowKlassClosure;
   friend class InstanceClassLoaderKlass;

@@ -1335,15 +1323,10 @@
 
 inline bool PSParallelCompact::is_marked(oop obj) {
   return mark_bitmap()->is_marked(obj);
 }
 
-template <class T>
-inline void PSParallelCompact::KeepAliveClosure::do_oop_work(T* p) {
-  mark_and_push(_compaction_manager, p);
-}
-
 inline bool PSParallelCompact::print_phases() {
   return _print_phases;
 }
 
 inline double PSParallelCompact::normal_distribution(double density) {
< prev index next >