6888526: Linux getCurrentThreadCpuTime is drastically slower than Windows

Reviewed-by: dcubed, dholmes
This commit is contained in:
Andrew Haley 2010-07-28 17:38:21 +01:00
parent 53ac035768
commit d44a3683b1
2 changed files with 10 additions and 3 deletions

View file

@ -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;
}