src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp Wed Jan 15 01:41:19 2014
--- new/src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp Wed Jan 15 01:41:18 2014
*** 659,669 ****
--- 659,669 ----
old_gen->compact();
young_gen->compact();
}
jlong PSMarkSweep::millis_since_last_gc() {
! // We need a monotonically non-deccreasing time in ms but
! // We need a monotonically non-decreasing time in ms but
// os::javaTimeMillis() does not guarantee monotonicity.
jlong now = os::javaTimeNanos() / NANOSECS_PER_MILLISEC;
jlong ret_val = now - _time_of_last_gc;
// XXX See note in genCollectedHeap::millis_since_last_gc().
if (ret_val < 0) {
*** 672,680 ****
--- 672,680 ----
}
return ret_val;
}
void PSMarkSweep::reset_millis_since_last_gc() {
! // We need a monotonically non-deccreasing time in ms but
! // We need a monotonically non-decreasing time in ms but
// os::javaTimeMillis() does not guarantee monotonicity.
_time_of_last_gc = os::javaTimeNanos() / NANOSECS_PER_MILLISEC;
}
src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File