src/share/vm/memory/generation.cpp

changeset 5369
71180a6e5080
parent 5237
f2110083203d
child 6131
86e6d691f2e1
equal deleted inserted replaced
5338:cedf20e2a655 5369: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 }

mercurial