Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/generation.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 | 86e6d691f2e1 |
comparison
equal
deleted
inserted
replaced
11065:cedf20e2a655 | 11096:71180a6e5080 |
---|---|
809 void OneContigSpaceCardGeneration::space_iterate(SpaceClosure* blk, | 809 void OneContigSpaceCardGeneration::space_iterate(SpaceClosure* blk, |
810 bool usedOnly) { | 810 bool usedOnly) { |
811 blk->do_space(_the_space); | 811 blk->do_space(_the_space); |
812 } | 812 } |
813 | 813 |
814 void OneContigSpaceCardGeneration::object_iterate_since_last_GC(ObjectClosure* blk) { | |
815 // Deal with delayed initialization of _the_space, | |
816 // and lack of initialization of _last_gc. | |
817 if (_last_gc.space() == NULL) { | |
818 assert(the_space() != NULL, "shouldn't be NULL"); | |
819 _last_gc = the_space()->bottom_mark(); | |
820 } | |
821 the_space()->object_iterate_from(_last_gc, blk); | |
822 } | |
823 | |
824 void OneContigSpaceCardGeneration::younger_refs_iterate(OopsInGenClosure* blk) { | 814 void OneContigSpaceCardGeneration::younger_refs_iterate(OopsInGenClosure* blk) { |
825 blk->set_generation(this); | 815 blk->set_generation(this); |
826 younger_refs_in_space_iterate(_the_space, blk); | 816 younger_refs_in_space_iterate(_the_space, blk); |
827 blk->reset_generation(); | 817 blk->reset_generation(); |
828 } | 818 } |