< prev index next >

src/hotspot/cpu/ppc/c1_MacroAssembler_ppc.cpp

Print this page
*** 131,11 ***
      std(R0/*==0, perhaps*/, BasicLock::displaced_header_offset_in_bytes(), Rbox);
      bne(CCR0, slow_int);
    }
  
    bind(done);
!   inc_held_monitor_count(Rmark /*tmp*/);
  }
  
  
  void C1_MacroAssembler::unlock_object(Register Rmark, Register Roop, Register Rbox, Label& slow_case) {
    assert_different_registers(Rmark, Roop, Rbox);
--- 131,13 ---
      std(R0/*==0, perhaps*/, BasicLock::displaced_header_offset_in_bytes(), Rbox);
      bne(CCR0, slow_int);
    }
  
    bind(done);
!   if (LockingMode == LM_LEGACY) {
+     inc_held_monitor_count(Rmark /*tmp*/);
+   }
  }
  
  
  void C1_MacroAssembler::unlock_object(Register Rmark, Register Roop, Register Rbox, Label& slow_case) {
    assert_different_registers(Rmark, Roop, Rbox);

*** 177,11 ***
    bind(slow_int);
    b(slow_case); // far
  
    // Done
    bind(done);
!   dec_held_monitor_count(Rmark /*tmp*/);
  }
  
  
  void C1_MacroAssembler::try_allocate(
    Register obj,                        // result: pointer to object after successful allocation
--- 179,13 ---
    bind(slow_int);
    b(slow_case); // far
  
    // Done
    bind(done);
!   if (LockingMode == LM_LEGACY) {
+     dec_held_monitor_count(Rmark /*tmp*/);
+   }
  }
  
  
  void C1_MacroAssembler::try_allocate(
    Register obj,                        // result: pointer to object after successful allocation
< prev index next >