Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/genMarkSweep.cpp @ 23224:79b13c9a93e8
8075210: Refactor strong root processing in order to allow G1 to evolve separately from GenCollectedHeap
Summary: Create a G1RootProcessor and move SharedHeap root processing to GenCollectedHeap
Reviewed-by: brutisso, tschatzl, ehelin
author | mgerdin |
---|---|
date | Mon, 01 Dec 2014 15:24:56 +0100 |
parents | 2c6ef90f030a |
children | 68de83e1d912 |
comparison
equal
deleted
inserted
replaced
23223:8f8f1d578796 | 23224:79b13c9a93e8 |
---|---|
208 ClassLoaderDataGraph::clear_claimed_marks(); | 208 ClassLoaderDataGraph::clear_claimed_marks(); |
209 | 209 |
210 gch->gen_process_roots(level, | 210 gch->gen_process_roots(level, |
211 false, // Younger gens are not roots. | 211 false, // Younger gens are not roots. |
212 true, // activate StrongRootsScope | 212 true, // activate StrongRootsScope |
213 SharedHeap::SO_None, | 213 GenCollectedHeap::SO_None, |
214 GenCollectedHeap::StrongRootsOnly, | 214 GenCollectedHeap::StrongRootsOnly, |
215 &follow_root_closure, | 215 &follow_root_closure, |
216 &follow_root_closure, | 216 &follow_root_closure, |
217 &follow_cld_closure); | 217 &follow_cld_closure); |
218 | 218 |
293 adjust_pointer_closure.set_orig_generation(gch->get_gen(level)); | 293 adjust_pointer_closure.set_orig_generation(gch->get_gen(level)); |
294 | 294 |
295 gch->gen_process_roots(level, | 295 gch->gen_process_roots(level, |
296 false, // Younger gens are not roots. | 296 false, // Younger gens are not roots. |
297 true, // activate StrongRootsScope | 297 true, // activate StrongRootsScope |
298 SharedHeap::SO_AllCodeCache, | 298 GenCollectedHeap::SO_AllCodeCache, |
299 GenCollectedHeap::StrongAndWeakRoots, | 299 GenCollectedHeap::StrongAndWeakRoots, |
300 &adjust_pointer_closure, | 300 &adjust_pointer_closure, |
301 &adjust_pointer_closure, | 301 &adjust_pointer_closure, |
302 &adjust_cld_closure); | 302 &adjust_cld_closure); |
303 | 303 |