Mercurial > hg > graal-compiler
diff src/cpu/sparc/vm/c1_CodeStubs_sparc.cpp @ 3254:59766fd005ff
7035117: G1: nsk/stress/jni/jnistress002 fails with assertion failure
Summary: Allow long type for offset in G1 code in compiler implementations of Unsafe.getObject
Reviewed-by: never, iveresov
author | johnc |
---|---|
date | Wed, 13 Apr 2011 17:56:43 -0700 |
parents | e1162778c1c8 |
children | 527b586edf24 |
line wrap: on
line diff
--- a/src/cpu/sparc/vm/c1_CodeStubs_sparc.cpp Fri Apr 08 14:53:16 2011 -0700 +++ b/src/cpu/sparc/vm/c1_CodeStubs_sparc.cpp Wed Apr 13 17:56:43 2011 -0700 @@ -489,7 +489,7 @@ // 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()));