There are several places in HotSpot where there is a wait loop that uses SpinPause, with a fallback to either yielding or sleeping if the wait goes on for a while. There are at least a couple more such places presently in development. It would be useful to have a utility class for that functionality, so there is only one copy of the code for doing this. One benefit of centralization would be to allow future work on interesting wait policies to affect all the uses without needing to rewrite them.
- relates to
-
JDK-8208458 Simplify and inline os::SpinPause() for non-Windows OS on X86
-
- Closed
-