mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6888526: Linux getCurrentThreadCpuTime is drastically slower than Windows
Reviewed-by: dcubed, dholmes
This commit is contained in:
parent
53ac035768
commit
d44a3683b1
2 changed files with 10 additions and 3 deletions
|
@ -2593,6 +2593,12 @@ SOLARIS_ONLY(
|
|||
FLAG_IS_DEFAULT(UseVMInterruptibleIO)) {
|
||||
FLAG_SET_DEFAULT(UseVMInterruptibleIO, true);
|
||||
}
|
||||
#ifdef LINUX
|
||||
if (JDK_Version::current().compare_major(6) <= 0 &&
|
||||
FLAG_IS_DEFAULT(UseLinuxPosixThreadCPUClocks)) {
|
||||
FLAG_SET_DEFAULT(UseLinuxPosixThreadCPUClocks, false);
|
||||
}
|
||||
#endif // LINUX
|
||||
return JNI_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue