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

@ -678,6 +678,10 @@ void LIR_Assembler::emit_op0(LIR_Op0* op) {
get_thread(op->result_opr());
break;
case lir_on_spin_wait:
on_spin_wait();
break;
default:
ShouldNotReachHere();
break;