mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue