hotspot/src/share/vm/memory/generation.cpp
void OneContigSpaceCardGeneration::object_iterate_since_last_GC(ObjectClosure* blk) {
{- -------------------------------------------
(1) もし _last_gc が初期化されていなければ, ここで初期化しておく.
---------------------------------------- -}
// Deal with delayed initialization of _the_space,
// and lack of initialization of _last_gc.
if (_last_gc.space() == NULL) {
assert(the_space() != NULL, "shouldn't be NULL");
_last_gc = the_space()->bottom_mark();
}
{- -------------------------------------------
(1) ContiguousSpace::object_iterate_from() を呼んで,
the_space 内のオブジェクトに blk 引数の ObjectClosure を適用する.
(正確には, _last_gc に記録されている位置より後ろのオブジェクトにだけ適用する)
---------------------------------------- -}
the_space()->object_iterate_from(_last_gc, blk);
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.