Mercurial > hg > graal-compiler
diff src/share/vm/runtime/arguments.cpp @ 1679:3d90023429ec
6888526: Linux getCurrentThreadCpuTime is drastically slower than Windows
Reviewed-by: dcubed, dholmes
author | aph |
---|---|
date | Wed, 28 Jul 2010 17:38:21 +0100 |
parents | a00567c82f02 |
children | 126ea7725993 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Sun Jul 25 07:31:50 2010 -0700 +++ b/src/share/vm/runtime/arguments.cpp Wed Jul 28 17:38:21 2010 +0100 @@ -2593,6 +2593,12 @@ 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; }