8219369: Add named constants for iterating ExtRootScan phases

Reviewed-by: kbarrett, sangheki
This commit is contained in:
Thomas Schatzl 2019-03-04 11:49:16 +01:00
parent e68d585a8d
commit 719bbcddf8
2 changed files with 4 additions and 1 deletions

View File

@ -385,7 +385,7 @@ double G1GCPhaseTimes::print_evacuate_collection_set() const {
trace_phase(_gc_par_phases[GCWorkerStart], false);
debug_phase(_gc_par_phases[ExtRootScan]);
for (int i = ThreadRoots; i <= SATBFiltering; i++) {
for (int i = ExtRootScanSubPhasesStart; i <= ExtRootScanSubPhasesEnd; i++) {
trace_phase(_gc_par_phases[i]);
}
if (G1HotCardCache::default_use_cache()) {

View File

@ -81,6 +81,9 @@ class G1GCPhaseTimes : public CHeapObj<mtGC> {
GCParPhasesSentinel
};
static const GCParPhases ExtRootScanSubPhasesStart = ThreadRoots;
static const GCParPhases ExtRootScanSubPhasesEnd = SATBFiltering;
enum GCScanRSWorkItems {
ScanRSScannedCards,
ScanRSClaimedCards,