mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 20:14:43 +02:00
8032379: Remove the is_scavenging flag to process_strong_roots
Refactor the strong root processing to avoid using a boolean in addition to the ScanOption enum. Reviewed-by: stefank, tschatzl, ehelin, jmasa
This commit is contained in:
parent
8ce7c46ec7
commit
4c7c3f0613
10 changed files with 35 additions and 48 deletions
|
@ -131,7 +131,6 @@ void G1MarkSweep::mark_sweep_phase1(bool& marked_for_unloading,
|
|||
ClassLoaderDataGraph::clear_claimed_marks();
|
||||
|
||||
sh->process_strong_roots(true, // activate StrongRootsScope
|
||||
false, // not scavenging.
|
||||
SharedHeap::SO_SystemClasses,
|
||||
&GenMarkSweep::follow_root_closure,
|
||||
&GenMarkSweep::follow_code_root_closure,
|
||||
|
@ -308,7 +307,6 @@ void G1MarkSweep::mark_sweep_phase3() {
|
|||
ClassLoaderDataGraph::clear_claimed_marks();
|
||||
|
||||
sh->process_strong_roots(true, // activate StrongRootsScope
|
||||
false, // not scavenging.
|
||||
SharedHeap::SO_AllClasses,
|
||||
&GenMarkSweep::adjust_pointer_closure,
|
||||
NULL, // do not touch code cache here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue