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
|
@ -3161,7 +3161,9 @@ void LIRGenerator::do_Intrinsic(Intrinsic* x) {
|
|||
case vmIntrinsics::_fullFence :
|
||||
if (os::is_MP()) __ membar();
|
||||
break;
|
||||
|
||||
case vmIntrinsics::_onSpinWait:
|
||||
__ on_spin_wait();
|
||||
break;
|
||||
case vmIntrinsics::_Reference_get:
|
||||
do_Reference_get(x);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue