8219619: Remove UseFakeTimers and related code
authordholmes
Sat, 02 Mar 2019 18:09:18 -0500
changeset 53981 d489081c5650
parent 53980 f3fd73c3a077
child 53982 05d35241e1e9
8219619: Remove UseFakeTimers and related code Reviewed-by: zgu, redestad
src/hotspot/os/windows/os_windows.cpp
src/hotspot/share/runtime/globals.hpp
--- 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")                                 \
                                                                             \