< prev index next >

src/share/vm/gc_implementation/shared/gcTimer.cpp

Print this page

        

*** 23,33 **** */ #include "precompiled.hpp" #include "gc_implementation/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() void GCTimer::register_gc_start(const Ticks& time) { --- 23,33 ---- */ #include "precompiled.hpp" #include "gc_implementation/shared/gcTimer.hpp" #include "utilities/growableArray.hpp" ! #include "utilities/ticks.hpp" // the "time" parameter for most functions // has a default value set by Ticks::now() void GCTimer::register_gc_start(const Ticks& time) {
*** 347,365 **** static void gc_start() { GCTimer gc_timer; gc_timer.register_gc_start(1); ! assert(gc_timer.gc_start() == 1, "Incorrect"); } static void gc_end() { GCTimer gc_timer; gc_timer.register_gc_start(1); gc_timer.register_gc_end(2); ! assert(gc_timer.gc_end() == 2, "Incorrect"); } }; void GCTimerAllTest::all() { GCTimerTest::all(); --- 347,365 ---- static void gc_start() { GCTimer gc_timer; gc_timer.register_gc_start(1); ! assert(gc_timer.gc_start() == Ticks(1), "Incorrect"); } static void gc_end() { GCTimer gc_timer; gc_timer.register_gc_start(1); gc_timer.register_gc_end(2); ! assert(gc_timer.gc_end() == Ticks(2), "Incorrect"); } }; void GCTimerAllTest::all() { GCTimerTest::all();
< prev index next >