comparison src/cpu/sparc/vm/assembler_sparc.hpp @ 420:a1980da045cc

6462850: generate biased locking code in C2 ideal graph Summary: Inline biased locking code in C2 ideal graph during macro nodes expansion Reviewed-by: never
author kvn
date Fri, 07 Nov 2008 09:29:38 -0800
parents 1ee8caae33af
children 56aae7be60d4
comparison
equal deleted inserted replaced
419:0bf25c4807f9 420:a1980da045cc
2218 address lock_addr=0, bool use_call_vm=false); 2218 address lock_addr=0, bool use_call_vm=false);
2219 void casn (Register addr_reg, Register cmp_reg, Register set_reg) ; 2219 void casn (Register addr_reg, Register cmp_reg, Register set_reg) ;
2220 2220
2221 // These set the icc condition code to equal if the lock succeeded 2221 // These set the icc condition code to equal if the lock succeeded
2222 // and notEqual if it failed and requires a slow case 2222 // and notEqual if it failed and requires a slow case
2223 void compiler_lock_object(Register Roop, Register Rmark, Register Rbox, Register Rscratch, 2223 void compiler_lock_object(Register Roop, Register Rmark, Register Rbox,
2224 BiasedLockingCounters* counters = NULL); 2224 Register Rscratch,
2225 void compiler_unlock_object(Register Roop, Register Rmark, Register Rbox, Register Rscratch); 2225 BiasedLockingCounters* counters = NULL,
2226 bool try_bias = UseBiasedLocking);
2227 void compiler_unlock_object(Register Roop, Register Rmark, Register Rbox,
2228 Register Rscratch,
2229 bool try_bias = UseBiasedLocking);
2226 2230
2227 // Biased locking support 2231 // Biased locking support
2228 // Upon entry, lock_reg must point to the lock record on the stack, 2232 // Upon entry, lock_reg must point to the lock record on the stack,
2229 // obj_reg must contain the target object, and mark_reg must contain 2233 // obj_reg must contain the target object, and mark_reg must contain
2230 // the target object's header. 2234 // the target object's header.