549 // Iterate over all safe objects in the generation, calling "cl.do_object" on |
549 // Iterate over all safe objects in the generation, calling "cl.do_object" on |
550 // each. An object is safe if its references point to other objects in |
550 // each. An object is safe if its references point to other objects in |
551 // the heap. This defaults to object_iterate() unless overridden. |
551 // the heap. This defaults to object_iterate() unless overridden. |
552 virtual void safe_object_iterate(ObjectClosure* cl); |
552 virtual void safe_object_iterate(ObjectClosure* cl); |
553 |
553 |
554 // Iterate over all objects allocated in the generation since the last |
|
555 // collection, calling "cl.do_object" on each. The generation must have |
|
556 // been initialized properly to support this function, or else this call |
|
557 // will fail. |
|
558 virtual void object_iterate_since_last_GC(ObjectClosure* cl) = 0; |
|
559 |
|
560 // Apply "cl->do_oop" to (the address of) all and only all the ref fields |
554 // Apply "cl->do_oop" to (the address of) all and only all the ref fields |
561 // in the current generation that contain pointers to objects in younger |
555 // in the current generation that contain pointers to objects in younger |
562 // generations. Objects allocated since the last "save_marks" call are |
556 // generations. Objects allocated since the last "save_marks" call are |
563 // excluded. |
557 // excluded. |
564 virtual void younger_refs_iterate(OopsInGenClosure* cl) = 0; |
558 virtual void younger_refs_iterate(OopsInGenClosure* cl) = 0; |
722 size_t contiguous_available() const; |
716 size_t contiguous_available() const; |
723 |
717 |
724 // Iteration |
718 // Iteration |
725 void object_iterate(ObjectClosure* blk); |
719 void object_iterate(ObjectClosure* blk); |
726 void space_iterate(SpaceClosure* blk, bool usedOnly = false); |
720 void space_iterate(SpaceClosure* blk, bool usedOnly = false); |
727 void object_iterate_since_last_GC(ObjectClosure* cl); |
|
728 |
721 |
729 void younger_refs_iterate(OopsInGenClosure* blk); |
722 void younger_refs_iterate(OopsInGenClosure* blk); |
730 |
723 |
731 inline CompactibleSpace* first_compaction_space() const; |
724 inline CompactibleSpace* first_compaction_space() const; |
732 |
725 |