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:
Ivan Krylov 2016-03-30 17:04:14 +02:00 committed by Ivan P Krylov
parent cf5871861f
commit 429b1c80a1
22 changed files with 172 additions and 1 deletions

View file

@ -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;