1.1 --- a/src/share/vm/gc_implementation/g1/g1RemSet.cpp Mon Mar 09 11:32:57 2009 -0400 1.2 +++ b/src/share/vm/gc_implementation/g1/g1RemSet.cpp Tue Mar 10 00:47:05 2009 -0700 1.3 @@ -105,33 +105,6 @@ 1.4 _g1->heap_region_iterate(&rc); 1.5 } 1.6 1.7 -class UpdateRSOopClosure: public OopClosure { 1.8 - HeapRegion* _from; 1.9 - HRInto_G1RemSet* _rs; 1.10 - int _worker_i; 1.11 -public: 1.12 - UpdateRSOopClosure(HRInto_G1RemSet* rs, int worker_i = 0) : 1.13 - _from(NULL), _rs(rs), _worker_i(worker_i) { 1.14 - guarantee(_rs != NULL, "Requires an HRIntoG1RemSet"); 1.15 - } 1.16 - 1.17 - void set_from(HeapRegion* from) { 1.18 - assert(from != NULL, "from region must be non-NULL"); 1.19 - _from = from; 1.20 - } 1.21 - 1.22 - virtual void do_oop(narrowOop* p) { 1.23 - guarantee(false, "NYI"); 1.24 - } 1.25 - virtual void do_oop(oop* p) { 1.26 - assert(_from != NULL, "from region must be non-NULL"); 1.27 - _rs->par_write_ref(_from, p, _worker_i); 1.28 - } 1.29 - // Override: this closure is idempotent. 1.30 - // bool idempotent() { return true; } 1.31 - bool apply_to_weak_ref_discovered_field() { return true; } 1.32 -}; 1.33 - 1.34 class UpdateRSOutOfRegionClosure: public HeapRegionClosure { 1.35 G1CollectedHeap* _g1h; 1.36 ModRefBarrierSet* _mr_bs;