mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8147844: new method j.l.Runtime.onSpinWait() and the corresponding x86 hotspot instrinsic
Adds c1 & c2 x86 intrinsics for j.l.Runtime.onSpinWait() that utilize the PAUSE instruction Co-authored-by: Yuri Gaevsky <ygaevsky@azul.com> Reviewed-by: iveresov, kvn
This commit is contained in:
parent
cf5871861f
commit
429b1c80a1
22 changed files with 172 additions and 1 deletions
|
@ -131,6 +131,9 @@ bool Compiler::is_intrinsic_supported(const methodHandle& method) {
|
|||
if (!VM_Version::supports_atomic_getset4()) return false;
|
||||
#endif
|
||||
break;
|
||||
case vmIntrinsics::_onSpinWait:
|
||||
if (!VM_Version::supports_on_spin_wait()) return false;
|
||||
break;
|
||||
case vmIntrinsics::_arraycopy:
|
||||
case vmIntrinsics::_currentTimeMillis:
|
||||
case vmIntrinsics::_nanoTime:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue