mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-11 10:58:26 +00:00
6888526: Linux getCurrentThreadCpuTime is drastically slower than Windows
Reviewed-by: dcubed, dholmes
This commit is contained in:
parent
53ac035768
commit
d44a3683b1
@ -29,9 +29,10 @@
|
||||
product(bool, UseOprofile, false, \
|
||||
"enable support for Oprofile profiler") \
|
||||
\
|
||||
product(bool, UseLinuxPosixThreadCPUClocks, false, \
|
||||
"enable fast Linux Posix clocks where available") \
|
||||
|
||||
product(bool, UseLinuxPosixThreadCPUClocks, true, \
|
||||
"enable fast Linux Posix clocks where available")
|
||||
// NB: The default value of UseLinuxPosixThreadCPUClocks may be
|
||||
// overridden in Arguments::parse_each_vm_init_arg.
|
||||
|
||||
//
|
||||
// Defines Linux-specific default values. The flags are available on all
|
||||
|
||||
@ -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…
x
Reference in New Issue
Block a user