mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
6462850: generate biased locking code in C2 ideal graph
Inline biased locking code in C2 ideal graph during macro nodes expansion Reviewed-by: never
This commit is contained in:
parent
2c3b8ec969
commit
7aae40a95f
25 changed files with 472 additions and 148 deletions
|
@ -2220,9 +2220,13 @@ class MacroAssembler: public Assembler {
|
|||
|
||||
// These set the icc condition code to equal if the lock succeeded
|
||||
// and notEqual if it failed and requires a slow case
|
||||
void compiler_lock_object(Register Roop, Register Rmark, Register Rbox, Register Rscratch,
|
||||
BiasedLockingCounters* counters = NULL);
|
||||
void compiler_unlock_object(Register Roop, Register Rmark, Register Rbox, Register Rscratch);
|
||||
void compiler_lock_object(Register Roop, Register Rmark, Register Rbox,
|
||||
Register Rscratch,
|
||||
BiasedLockingCounters* counters = NULL,
|
||||
bool try_bias = UseBiasedLocking);
|
||||
void compiler_unlock_object(Register Roop, Register Rmark, Register Rbox,
|
||||
Register Rscratch,
|
||||
bool try_bias = UseBiasedLocking);
|
||||
|
||||
// Biased locking support
|
||||
// Upon entry, lock_reg must point to the lock record on the stack,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue