comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 10327:001ec9515f84

8014277: Remove ObjectClosure as base class for BoolObjectClosure Reviewed-by: brutisso, tschatzl
author ehelin
date Fri, 17 May 2013 11:57:05 +0200
parents 48391ab0687e
children e72f7eecc96d
comparison
equal deleted inserted replaced
10292:acac2b03a07f 10327:001ec9515f84
5088 // discovered by the CM ref processor. 5088 // discovered by the CM ref processor.
5089 class G1AlwaysAliveClosure: public BoolObjectClosure { 5089 class G1AlwaysAliveClosure: public BoolObjectClosure {
5090 G1CollectedHeap* _g1; 5090 G1CollectedHeap* _g1;
5091 public: 5091 public:
5092 G1AlwaysAliveClosure(G1CollectedHeap* g1) : _g1(g1) {} 5092 G1AlwaysAliveClosure(G1CollectedHeap* g1) : _g1(g1) {}
5093 void do_object(oop p) { assert(false, "Do not call."); }
5094 bool do_object_b(oop p) { 5093 bool do_object_b(oop p) {
5095 if (p != NULL) { 5094 if (p != NULL) {
5096 return true; 5095 return true;
5097 } 5096 }
5098 return false; 5097 return false;