< prev index next >

src/hotspot/cpu/aarch64/gc/shared/barrierSetAssembler_aarch64.cpp

Print this page




 212 
 213     incr_allocated_bytes(masm, var_size_in_bytes, con_size_in_bytes, t1);
 214   }
 215 }
 216 
 217 void BarrierSetAssembler::incr_allocated_bytes(MacroAssembler* masm,
 218                                                Register var_size_in_bytes,
 219                                                int con_size_in_bytes,
 220                                                Register t1) {
 221   assert(t1->is_valid(), "need temp reg");
 222 
 223   __ ldr(t1, Address(rthread, in_bytes(JavaThread::allocated_bytes_offset())));
 224   if (var_size_in_bytes->is_valid()) {
 225     __ add(t1, t1, var_size_in_bytes);
 226   } else {
 227     __ add(t1, t1, con_size_in_bytes);
 228   }
 229   __ str(t1, Address(rthread, in_bytes(JavaThread::allocated_bytes_offset())));
 230 }
 231 









 212 
 213     incr_allocated_bytes(masm, var_size_in_bytes, con_size_in_bytes, t1);
 214   }
 215 }
 216 
 217 void BarrierSetAssembler::incr_allocated_bytes(MacroAssembler* masm,
 218                                                Register var_size_in_bytes,
 219                                                int con_size_in_bytes,
 220                                                Register t1) {
 221   assert(t1->is_valid(), "need temp reg");
 222 
 223   __ ldr(t1, Address(rthread, in_bytes(JavaThread::allocated_bytes_offset())));
 224   if (var_size_in_bytes->is_valid()) {
 225     __ add(t1, t1, var_size_in_bytes);
 226   } else {
 227     __ add(t1, t1, con_size_in_bytes);
 228   }
 229   __ str(t1, Address(rthread, in_bytes(JavaThread::allocated_bytes_offset())));
 230 }
 231 
 232 void BarrierSetAssembler::resolve_for_read(MacroAssembler* masm, DecoratorSet decorators, Register obj) {
 233   // Default to no-op.
 234 }
 235 
 236 void BarrierSetAssembler::resolve_for_write(MacroAssembler* masm, DecoratorSet decorators, Register obj) {
 237   // Default to no-op.
 238 }
< prev index next >