comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp @ 11096:71180a6e5080

7133260: AllocationProfiler uses space in metadata and doesn't seem to do anything useful. Summary: Remove -Xaprof and Klass::_alloc_count & ArrayKlass::_alloc_size. Reviewed-by: stefank, coleenp
author jiangli
date Wed, 03 Jul 2013 17:26:59 -0400
parents f2110083203d
children 7b06ae405d7b
comparison
equal deleted inserted replaced
11065:cedf20e2a655 11096:71180a6e5080
3126 cl->reset_generation(); \ 3126 cl->reset_generation(); \
3127 save_marks(); \ 3127 save_marks(); \
3128 } 3128 }
3129 3129
3130 ALL_SINCE_SAVE_MARKS_CLOSURES(CMS_SINCE_SAVE_MARKS_DEFN) 3130 ALL_SINCE_SAVE_MARKS_CLOSURES(CMS_SINCE_SAVE_MARKS_DEFN)
3131
3132 void
3133 ConcurrentMarkSweepGeneration::object_iterate_since_last_GC(ObjectClosure* blk)
3134 {
3135 // Not currently implemented; need to do the following. -- ysr.
3136 // dld -- I think that is used for some sort of allocation profiler. So it
3137 // really means the objects allocated by the mutator since the last
3138 // GC. We could potentially implement this cheaply by recording only
3139 // the direct allocations in a side data structure.
3140 //
3141 // I think we probably ought not to be required to support these
3142 // iterations at any arbitrary point; I think there ought to be some
3143 // call to enable/disable allocation profiling in a generation/space,
3144 // and the iterator ought to return the objects allocated in the
3145 // gen/space since the enable call, or the last iterator call (which
3146 // will probably be at a GC.) That way, for gens like CM&S that would
3147 // require some extra data structure to support this, we only pay the
3148 // cost when it's in use...
3149 cmsSpace()->object_iterate_since_last_GC(blk);
3150 }
3151 3131
3152 void 3132 void
3153 ConcurrentMarkSweepGeneration::younger_refs_iterate(OopsInGenClosure* cl) { 3133 ConcurrentMarkSweepGeneration::younger_refs_iterate(OopsInGenClosure* cl) {
3154 cl->set_generation(this); 3134 cl->set_generation(this);
3155 younger_refs_in_space_iterate(_cmsSpace, cl); 3135 younger_refs_in_space_iterate(_cmsSpace, cl);