src/hotspot/share/gc/shared/gcTimer.cpp
changeset 50113 caf115bb98ad
parent 49020 6d61be5959e0
child 52321 52d3bb5ba2f7
--- a/src/hotspot/share/gc/shared/gcTimer.cpp	Tue May 15 11:28:29 2018 -0700
+++ b/src/hotspot/share/gc/shared/gcTimer.cpp	Tue May 15 20:24:34 2018 +0200
@@ -25,7 +25,6 @@
 #include "precompiled.hpp"
 #include "gc/shared/gcTimer.hpp"
 #include "utilities/growableArray.hpp"
-#include "utilities/ticks.inline.hpp"
 
 // the "time" parameter for most functions
 // has a default value set by Ticks::now()
@@ -376,7 +375,7 @@
     GCTimer gc_timer;
     gc_timer.register_gc_start(1);
 
-    assert(gc_timer.gc_start() == 1, "Incorrect");
+    assert(gc_timer.gc_start() == Ticks(1), "Incorrect");
   }
 
   static void gc_end() {
@@ -384,7 +383,7 @@
     gc_timer.register_gc_start(1);
     gc_timer.register_gc_end(2);
 
-    assert(gc_timer.gc_end() == 2, "Incorrect");
+    assert(gc_timer.gc_end() == Ticks(2), "Incorrect");
   }
 };