Skip to content

Commit 3f41d4c

Browse files
authored
Merge pull request #24250 from thallium/mon-enter-sleep
Enable yield sleep with cutoff on xLinux by default
2 parents 16776fb + afac442 commit 3f41d4c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

runtime/vm/vmthread.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,12 @@ threadParseArguments(J9JavaVM *vm, char *optArg)
763763
**(UDATA **)omrthread_global("parkSleepTime") = 0;
764764
#endif /* defined(J9VM_ARCH_POWER) */
765765

766+
#if defined(J9VM_ARCH_X86)
767+
**(UDATA **)omrthread_global("yieldAlgorithm") = J9THREAD_LIB_YIELD_ALGORITHM_CONSTANT_USLEEP_WITH_CUTOFF;
768+
**(UDATA **)omrthread_global("yieldUsleepMultiplier") = 1;
769+
**(UDATA **)omrthread_global("yieldSleepCpuUtilThreshold") = 98;
770+
#endif
771+
766772
vm->cpuUtilCacheInterval = 5;
767773
#endif /* defined(OMR_THR_YIELD_ALG) */
768774

0 commit comments

Comments
 (0)