Mercurial > hg > truffle
diff src/share/vm/memory/defNewGeneration.cpp @ 14308:870aedf4ba4f
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 | 284953caf7aa |
children | 1e1c8d358b52 |
line wrap: on
line diff
--- a/src/share/vm/memory/defNewGeneration.cpp Mon Jan 20 12:56:18 2014 +0100 +++ b/src/share/vm/memory/defNewGeneration.cpp Tue Jan 14 16:40:33 2014 +0100 @@ -618,13 +618,12 @@ assert(gch->no_allocs_since_save_marks(0), "save marks have not been newly set."); - int so = SharedHeap::SO_AllClasses | SharedHeap::SO_Strings | SharedHeap::SO_CodeCache; + int so = SharedHeap::SO_AllClasses | SharedHeap::SO_Strings | SharedHeap::SO_ScavengeCodeCache; gch->gen_process_strong_roots(_level, true, // Process younger gens, if any, // as strong roots. true, // activate StrongRootsScope - true, // is scavenging SharedHeap::ScanningOption(so), &fsc_with_no_gc_barrier, true, // walk *all* scavengable nmethods