Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1MarkSweep.cpp @ 20254:9fec19bb0659
8032379: Remove the is_scavenging flag to process_strong_roots
Summary: Refactor the strong root processing to avoid using a boolean in addition to the ScanOption enum.
Reviewed-by: stefank, tschatzl, ehelin, jmasa
author | mgerdin |
---|---|
date | Tue, 14 Jan 2014 16:40:33 +0100 |
parents | 0982ec23da03 |
children | 7426d8d76305 |
comparison
equal
deleted
inserted
replaced
20253:731e8175d53f | 20254:9fec19bb0659 |
---|---|
130 | 130 |
131 // Need cleared claim bits for the strong roots processing | 131 // Need cleared claim bits for the strong roots processing |
132 ClassLoaderDataGraph::clear_claimed_marks(); | 132 ClassLoaderDataGraph::clear_claimed_marks(); |
133 | 133 |
134 sh->process_strong_roots(true, // activate StrongRootsScope | 134 sh->process_strong_roots(true, // activate StrongRootsScope |
135 false, // not scavenging. | |
136 SharedHeap::SO_SystemClasses, | 135 SharedHeap::SO_SystemClasses, |
137 &GenMarkSweep::follow_root_closure, | 136 &GenMarkSweep::follow_root_closure, |
138 &GenMarkSweep::follow_code_root_closure, | 137 &GenMarkSweep::follow_code_root_closure, |
139 &GenMarkSweep::follow_klass_closure); | 138 &GenMarkSweep::follow_klass_closure); |
140 | 139 |
307 | 306 |
308 // Need cleared claim bits for the strong roots processing | 307 // Need cleared claim bits for the strong roots processing |
309 ClassLoaderDataGraph::clear_claimed_marks(); | 308 ClassLoaderDataGraph::clear_claimed_marks(); |
310 | 309 |
311 sh->process_strong_roots(true, // activate StrongRootsScope | 310 sh->process_strong_roots(true, // activate StrongRootsScope |
312 false, // not scavenging. | |
313 SharedHeap::SO_AllClasses, | 311 SharedHeap::SO_AllClasses, |
314 &GenMarkSweep::adjust_pointer_closure, | 312 &GenMarkSweep::adjust_pointer_closure, |
315 NULL, // do not touch code cache here | 313 NULL, // do not touch code cache here |
316 &GenMarkSweep::adjust_klass_closure); | 314 &GenMarkSweep::adjust_klass_closure); |
317 | 315 |