Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp @ 20264:30c99d8e0f02
8038399: Remove dead oop_iterate MemRegion variants from SharedHeap, Generation and Space classes
Reviewed-by: tschatzl, stefank
author | mgerdin |
---|---|
date | Thu, 06 Mar 2014 09:08:18 +0100 |
parents | 7426d8d76305 |
children | 4c1b88a53c74 |
comparison
equal
deleted
inserted
replaced
20263:4dfab3faf5e7 | 20264:30c99d8e0f02 |
---|---|
3163 void | 3163 void |
3164 ConcurrentMarkSweepGeneration::younger_refs_iterate(OopsInGenClosure* cl) { | 3164 ConcurrentMarkSweepGeneration::younger_refs_iterate(OopsInGenClosure* cl) { |
3165 cl->set_generation(this); | 3165 cl->set_generation(this); |
3166 younger_refs_in_space_iterate(_cmsSpace, cl); | 3166 younger_refs_in_space_iterate(_cmsSpace, cl); |
3167 cl->reset_generation(); | 3167 cl->reset_generation(); |
3168 } | |
3169 | |
3170 void | |
3171 ConcurrentMarkSweepGeneration::oop_iterate(MemRegion mr, ExtendedOopClosure* cl) { | |
3172 if (freelistLock()->owned_by_self()) { | |
3173 Generation::oop_iterate(mr, cl); | |
3174 } else { | |
3175 MutexLockerEx x(freelistLock(), Mutex::_no_safepoint_check_flag); | |
3176 Generation::oop_iterate(mr, cl); | |
3177 } | |
3178 } | 3168 } |
3179 | 3169 |
3180 void | 3170 void |
3181 ConcurrentMarkSweepGeneration::oop_iterate(ExtendedOopClosure* cl) { | 3171 ConcurrentMarkSweepGeneration::oop_iterate(ExtendedOopClosure* cl) { |
3182 if (freelistLock()->owned_by_self()) { | 3172 if (freelistLock()->owned_by_self()) { |