< prev index next >
src/hotspot/share/gc/serial/genMarkSweep.cpp
Print this page
rev 60257 : [mq]: 8248401-unify-millis-since-last-gc
@@ -135,17 +135,11 @@
// Update heap occupancy information which is used as
// input to soft ref clearing policy at the next gc.
Universe::update_heap_info_at_gc();
- // Update time of last gc for all generations we collected
- // (which currently is all the generations in the heap).
- // We need to use a monotonically non-decreasing time in ms
- // or we will see time-warp warnings and os::javaTimeMillis()
- // does not guarantee monotonicity.
- jlong now = os::javaTimeNanos() / NANOSECS_PER_MILLISEC;
- gch->update_time_of_last_gc(now);
+ Universe::heap()->next_whole_heap_examined();
gch->trace_heap_after_gc(_gc_tracer);
}
void GenMarkSweep::allocate_stacks() {
< prev index next >