< prev index next >

src/share/vm/gc/serial/defNewGeneration.cpp

Print this page

        

*** 382,392 **** GenCollectedHeap* gch = GenCollectedHeap::heap(); size_t old_size = gch->old_gen()->capacity(); size_t new_size_before = _virtual_space.committed_size(); ! size_t min_new_size = spec()->init_size(); size_t max_new_size = reserved().byte_size(); assert(min_new_size <= new_size_before && new_size_before <= max_new_size, "just checking"); // All space sizes must be multiples of Generation::GenGrain. --- 382,392 ---- GenCollectedHeap* gch = GenCollectedHeap::heap(); size_t old_size = gch->old_gen()->capacity(); size_t new_size_before = _virtual_space.committed_size(); ! size_t min_new_size = initial_size(); size_t max_new_size = reserved().byte_size(); assert(min_new_size <= new_size_before && new_size_before <= max_new_size, "just checking"); // All space sizes must be multiples of Generation::GenGrain.
*** 625,643 **** // DefNew needs to run with n_threads == 0, to make sure the serial // version of the card table scanning code is used. // See: CardTableModRefBSForCTRS::non_clean_card_iterate_possibly_parallel. StrongRootsScope srs(0); ! gch->gen_process_roots(&srs, ! GenCollectedHeap::YoungGen, ! true, // Process younger gens, if any, ! // as strong roots. ! GenCollectedHeap::SO_ScavengeCodeCache, ! GenCollectedHeap::StrongAndWeakRoots, ! &fsc_with_no_gc_barrier, ! &fsc_with_gc_barrier, ! &cld_scan_closure); } // "evacuate followers". evacuate_followers.do_void(); --- 625,638 ---- // DefNew needs to run with n_threads == 0, to make sure the serial // version of the card table scanning code is used. // See: CardTableModRefBSForCTRS::non_clean_card_iterate_possibly_parallel. StrongRootsScope srs(0); ! gch->young_process_roots(&srs, ! &fsc_with_no_gc_barrier, ! &fsc_with_gc_barrier, ! &cld_scan_closure); } // "evacuate followers". evacuate_followers.do_void();
< prev index next >