--- old/src/cpu/x86/vm/vm_version_x86.hpp 2016-02-15 10:21:07.000000000 +0300 +++ new/src/cpu/x86/vm/vm_version_x86.hpp 2016-02-15 10:21:07.000000000 +0300 @@ -839,6 +839,11 @@ static uint32_t get_xsave_header_upper_segment() { return _cpuid_info.xem_xcr0_edx; } + + // SSE2 and later processors implement a 'pause' instruction + // that can be used for efficient implementation of + // the intrinsic for java.lang.Runtime.onSpinWait() + static bool supports_on_spin_wait() { return supports_sse2(); } }; #endif // CPU_X86_VM_VM_VERSION_X86_HPP