8229206: Shenandoah: ShenandoahWeakRoot::oops_do() uses wrong timing phase
authorzgu
Wed, 07 Aug 2019 07:45:37 -0400
changeset 57666 850f456d1e22
parent 57665 bf325b739c8a
child 57667 79036e5e744b
8229206: Shenandoah: ShenandoahWeakRoot::oops_do() uses wrong timing phase Reviewed-by: shade
src/hotspot/share/gc/shenandoah/shenandoahRootProcessor.inline.hpp
--- a/src/hotspot/share/gc/shenandoah/shenandoahRootProcessor.inline.hpp	Wed Aug 07 11:28:14 2019 +0100
+++ b/src/hotspot/share/gc/shenandoah/shenandoahRootProcessor.inline.hpp	Wed Aug 07 07:45:37 2019 -0400
@@ -48,7 +48,7 @@
     _itr.oops_do(cl);
   } else {
     ShenandoahWorkerTimings* worker_times = ShenandoahHeap::heap()->phase_timings()->worker_times();
-    ShenandoahWorkerTimingsTracker timer(worker_times, ShenandoahPhaseTimings::ThreadRoots, worker_id);
+    ShenandoahWorkerTimingsTracker timer(worker_times, _phase, worker_id);
     _itr.oops_do(cl);
   }
 }