< prev index next >
src/cpu/x86/vm/macroAssembler_x86.cpp
Print this page
@@ -5598,10 +5598,14 @@
movptr(Address(thread_reg, in_bytes(JavaThread::tlab_top_offset())), top);
addptr(top, t1);
subptr(top, (int32_t)ThreadLocalAllocBuffer::alignment_reserve_in_bytes());
movptr(Address(thread_reg, in_bytes(JavaThread::tlab_end_offset())), top);
+ // Currently, if this happens, just set back the actual end to where it was.
+ // We miss a chance to sample here but it is a TODO.
+ movptr(Address(thread_reg, in_bytes(JavaThread::tlab_actual_end_offset())), top);
+
if (ZeroTLAB) {
// This is a fast TLAB refill, therefore the GC is not notified of it.
// So compiled code must fill the new TLAB with zeroes.
movptr(top, Address(thread_reg, in_bytes(JavaThread::tlab_start_offset())));
zero_memory(top, t1, 0, t2);
< prev index next >