8080627: JavaThread::satb_mark_queue_offset() is too big for an ARM ldrsb instruction
Reviewed-by: roland, kbarrett
--- a/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp Thu May 21 09:35:59 2015 +0200
+++ b/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp Fri May 22 10:56:37 2015 +0200
@@ -1469,7 +1469,9 @@
} else {
guarantee(in_bytes(PtrQueue::byte_width_of_active()) == 1,
"Assumption");
- flag_type = T_BYTE;
+ // Use unsigned type T_BOOLEAN here rather than signed T_BYTE since some platforms, eg. ARM,
+ // need to use unsigned instructions to use the large offset to load the satb_mark_queue.
+ flag_type = T_BOOLEAN;
}
LIR_Opr thrd = getThreadPointer();
LIR_Address* mark_active_flag_addr =