src/hotspot/share/gc/z/zHeap.cpp
changeset 54331 f0fec71d2fff
parent 54174 6d1caebf8d37
child 54616 3ab77d8dc60a
--- a/src/hotspot/share/gc/z/zHeap.cpp	Thu Mar 28 19:43:59 2019 +0100
+++ b/src/hotspot/share/gc/z/zHeap.cpp	Thu Mar 28 19:43:59 2019 +0100
@@ -540,16 +540,19 @@
 
 class ZVerifyRootsTask : public ZTask {
 private:
+  ZStatTimerDisable  _disable;
   ZRootsIterator     _strong_roots;
   ZWeakRootsIterator _weak_roots;
 
 public:
   ZVerifyRootsTask() :
       ZTask("ZVerifyRootsTask"),
+      _disable(),
       _strong_roots(),
       _weak_roots() {}
 
   virtual void work() {
+    ZStatTimerDisable disable;
     ZVerifyOopClosure cl;
     _strong_roots.oops_do(&cl);
     _weak_roots.oops_do(&cl);