hg: hsx/hotspot-gc/hotspot: 7117303: VM uses non-monotonic time source and complains that it is non-monotonic
john.cuthbertson at oracle.com
john.cuthbertson at oracle.com
Mon Dec 19 23:26:29 UTC 2011
Changeset: e7dead7e90af
Author: johnc
Date: 2011-12-19 10:02 -0800
URL: http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/e7dead7e90af
7117303: VM uses non-monotonic time source and complains that it is non-monotonic
Summary: Replaces calls to os::javaTimeMillis(), which does not (and cannot) guarantee monotonicity, in GC code to an equivalent expression that uses os::javaTimeNanos(). os::javaTimeNanos is guaranteed monotonically non-decreasing if the underlying platform provides a monotonic time source. Changes in OS files are to make use of the newly defined constants in globalDefinitions.hpp.
Reviewed-by: dholmes, ysr
! src/os/bsd/vm/os_bsd.cpp
! src/os/linux/vm/os_linux.cpp
! src/os/solaris/vm/os_solaris.cpp
! src/os/windows/vm/os_windows.cpp
! src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
! src/share/vm/memory/genCollectedHeap.cpp
! src/share/vm/memory/generation.hpp
! src/share/vm/memory/referenceProcessor.cpp
! src/share/vm/utilities/globalDefinitions.hpp
More information about the hotspot-gc-dev
mailing list