src/hotspot/cpu/x86/x86.ad
changeset 51996 84743156e780
parent 51857 9978fea8a371
child 52992 4bb6e0871bf7
equal deleted inserted replaced
51995:f7babf9d1592 51996:84743156e780
  2802   match(OnSpinWait);
  2802   match(OnSpinWait);
  2803   ins_cost(200);
  2803   ins_cost(200);
  2804 
  2804 
  2805   format %{
  2805   format %{
  2806     $$template
  2806     $$template
  2807     if (os::is_MP()) {
  2807     $$emit$$"pause\t! membar_onspinwait"
  2808       $$emit$$"pause\t! membar_onspinwait"
       
  2809     } else {
       
  2810       $$emit$$"MEMBAR-onspinwait ! (empty encoding)"
       
  2811     }
       
  2812   %}
  2808   %}
  2813   ins_encode %{
  2809   ins_encode %{
  2814     __ pause();
  2810     __ pause();
  2815   %}
  2811   %}
  2816   ins_pipe(pipe_slow);
  2812   ins_pipe(pipe_slow);