comparison 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
comparison
equal deleted inserted replaced
1678:7f0fdccac34f 1679:3d90023429ec
2591 // when working with older JDKs. 2591 // when working with older JDKs.
2592 if (JDK_Version::current().compare_major(6) <= 0 && 2592 if (JDK_Version::current().compare_major(6) <= 0 &&
2593 FLAG_IS_DEFAULT(UseVMInterruptibleIO)) { 2593 FLAG_IS_DEFAULT(UseVMInterruptibleIO)) {
2594 FLAG_SET_DEFAULT(UseVMInterruptibleIO, true); 2594 FLAG_SET_DEFAULT(UseVMInterruptibleIO, true);
2595 } 2595 }
2596 #ifdef LINUX
2597 if (JDK_Version::current().compare_major(6) <= 0 &&
2598 FLAG_IS_DEFAULT(UseLinuxPosixThreadCPUClocks)) {
2599 FLAG_SET_DEFAULT(UseLinuxPosixThreadCPUClocks, false);
2600 }
2601 #endif // LINUX
2596 return JNI_OK; 2602 return JNI_OK;
2597 } 2603 }
2598 2604
2599 jint Arguments::finalize_vm_init_args(SysClassPath* scp_p, bool scp_assembly_required) { 2605 jint Arguments::finalize_vm_init_args(SysClassPath* scp_p, bool scp_assembly_required) {
2600 // This must be done after all -D arguments have been processed. 2606 // This must be done after all -D arguments have been processed.