7035117: G1: nsk/stress/jni/jnistress002 fails with assertion failure

Allow long type for offset in G1 code in compiler implementations of Unsafe.getObject

Reviewed-by: never, iveresov
This commit is contained in:
John Cuthbertson 2011-04-13 17:56:43 -07:00
parent b147ec205b
commit 20a3437a74
4 changed files with 25 additions and 8 deletions

View file

@ -489,7 +489,7 @@ void G1UnsafeGetObjSATBBarrierStub::emit_code(LIR_Assembler* ce) {
// Is marking active?
assert(thread()->is_register(), "precondition");
Register thread_reg = thread()->as_register();
Register thread_reg = NOT_LP64(thread()->as_register()) LP64_ONLY(thread()->as_register_lo());
Address in_progress(thread_reg, in_bytes(JavaThread::satb_mark_queue_offset() +
PtrQueue::byte_offset_of_active()));