changeset 54010:d489081c5650

8219619: Remove UseFakeTimers and related code Reviewed-by: zgu, redestad
author dholmes
date Sat, 02 Mar 2019 18:09:18 -0500
parents f3fd73c3a077
children 05d35241e1e9
files src/hotspot/os/windows/os_windows.cpp src/hotspot/share/runtime/globals.hpp
diffstat 2 files changed, 3 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/os/windows/os_windows.cpp	Sat Mar 02 08:33:32 2019 -0500
+++ b/src/hotspot/os/windows/os_windows.cpp	Sat Mar 02 18:09:18 2019 -0500
@@ -923,13 +923,9 @@
 }
 
 jlong os::javaTimeMillis() {
-  if (UseFakeTimers) {
-    return fake_time++;
-  } else {
-    FILETIME wt;
-    GetSystemTimeAsFileTime(&wt);
-    return windows_to_java_time(wt);
-  }
+  FILETIME wt;
+  GetSystemTimeAsFileTime(&wt);
+  return windows_to_java_time(wt);
 }
 
 void os::javaTimeSystemUTC(jlong &seconds, jlong &nanos) {
--- a/src/hotspot/share/runtime/globals.hpp	Sat Mar 02 08:33:32 2019 -0500
+++ b/src/hotspot/share/runtime/globals.hpp	Sat Mar 02 18:09:18 2019 -0500
@@ -651,9 +651,6 @@
   develop(bool, BreakAtWarning, false,                                      \
           "Execute breakpoint upon encountering VM warning")                \
                                                                             \
-  develop(bool, UseFakeTimers, false,                                       \
-          "Tell whether the VM should use system time or a fake timer")     \
-                                                                            \
   product(ccstr, NativeMemoryTracking, "off",                               \
           "Native memory tracking options")                                 \
                                                                             \