< prev index next >

src/hotspot/share/gc/serial/genMarkSweep.cpp

Print this page

        

*** 176,191 **** // Recursively traverse all live objects and mark them GCTraceTime(Info, gc, phases) tm("Phase 1: Mark live objects", _gc_timer); GenCollectedHeap* gch = GenCollectedHeap::heap(); - // Because follow_root_closure is created statically, cannot - // use OopsInGenClosure constructor which takes a generation, - // as the Universe has not been created when the static constructors - // are run. - follow_root_closure.set_orig_generation(gch->old_gen()); - // Need new claim bits before marking starts. ClassLoaderDataGraph::clear_claimed_marks(); { StrongRootsScope srs(1); --- 176,185 ----
*** 275,290 **** GCTraceTime(Info, gc, phases) tm("Phase 3: Adjust pointers", gc_timer()); // Need new claim bits for the pointer adjustment tracing. ClassLoaderDataGraph::clear_claimed_marks(); - // Because the closure below is created statically, we cannot - // use OopsInGenClosure constructor which takes a generation, - // as the Universe has not been created when the static constructors - // are run. - adjust_pointer_closure.set_orig_generation(gch->old_gen()); - { StrongRootsScope srs(1); gch->full_process_roots(&srs, true, // this is the adjust phase --- 269,278 ----
< prev index next >