8219619: Remove UseFakeTimers and related code

Reviewed-by: zgu, redestad
This commit is contained in:
David Holmes 2019-03-02 18:09:18 -05:00
parent ce570e8693
commit 0d13646cbf
2 changed files with 3 additions and 10 deletions

View file

@ -923,13 +923,9 @@ double os::elapsedVTime() {
} }
jlong os::javaTimeMillis() { jlong os::javaTimeMillis() {
if (UseFakeTimers) { FILETIME wt;
return fake_time++; GetSystemTimeAsFileTime(&wt);
} else { return windows_to_java_time(wt);
FILETIME wt;
GetSystemTimeAsFileTime(&wt);
return windows_to_java_time(wt);
}
} }
void os::javaTimeSystemUTC(jlong &seconds, jlong &nanos) { void os::javaTimeSystemUTC(jlong &seconds, jlong &nanos) {

View file

@ -651,9 +651,6 @@ define_pd_global(uint64_t,MaxRAM, 1ULL*G);
develop(bool, BreakAtWarning, false, \ develop(bool, BreakAtWarning, false, \
"Execute breakpoint upon encountering VM warning") \ "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", \ product(ccstr, NativeMemoryTracking, "off", \
"Native memory tracking options") \ "Native memory tracking options") \
\ \