< prev index next >

src/hotspot/cpu/x86/gc/shared/barrierSetAssembler_x86.cpp

Print this page




 305     thread = t1;
 306     __ get_thread(thread);
 307 #endif
 308   }
 309 
 310 #ifdef _LP64
 311   if (var_size_in_bytes->is_valid()) {
 312     __ addq(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())), var_size_in_bytes);
 313   } else {
 314     __ addq(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())), con_size_in_bytes);
 315   }
 316 #else
 317   if (var_size_in_bytes->is_valid()) {
 318     __ addl(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())), var_size_in_bytes);
 319   } else {
 320     __ addl(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())), con_size_in_bytes);
 321   }
 322   __ adcl(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())+4), 0);
 323 #endif
 324 }










 305     thread = t1;
 306     __ get_thread(thread);
 307 #endif
 308   }
 309 
 310 #ifdef _LP64
 311   if (var_size_in_bytes->is_valid()) {
 312     __ addq(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())), var_size_in_bytes);
 313   } else {
 314     __ addq(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())), con_size_in_bytes);
 315   }
 316 #else
 317   if (var_size_in_bytes->is_valid()) {
 318     __ addl(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())), var_size_in_bytes);
 319   } else {
 320     __ addl(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())), con_size_in_bytes);
 321   }
 322   __ adcl(Address(thread, in_bytes(JavaThread::allocated_bytes_offset())+4), 0);
 323 #endif
 324 }
 325 
 326 void BarrierSetAssembler::resolve_for_read(MacroAssembler* masm, DecoratorSet decorators, Register obj) {
 327   // Default to no-op
 328 }
 329 
 330 void BarrierSetAssembler::resolve_for_write(MacroAssembler* masm, DecoratorSet decorators, Register obj) {
 331   // Default to no-op
 332 }
< prev index next >