Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/library_call.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 | 92add02409c9 |
children | 5d046bf49ce7 |
comparison
equal
deleted
inserted
replaced
3253:f177ddd59c60 | 3254:59766fd005ff |
---|---|
2167 #define __ ideal. | 2167 #define __ ideal. |
2168 | 2168 |
2169 const int reference_type_offset = instanceKlass::reference_type_offset_in_bytes() + | 2169 const int reference_type_offset = instanceKlass::reference_type_offset_in_bytes() + |
2170 sizeof(oopDesc); | 2170 sizeof(oopDesc); |
2171 | 2171 |
2172 Node* referent_off = __ ConI(java_lang_ref_Reference::referent_offset); | 2172 Node* referent_off = __ ConX(java_lang_ref_Reference::referent_offset); |
2173 | 2173 |
2174 __ if_then(offset, BoolTest::eq, referent_off, unlikely); { | 2174 __ if_then(offset, BoolTest::eq, referent_off, unlikely); { |
2175 __ if_then(base_oop, BoolTest::ne, null(), likely); { | 2175 __ if_then(base_oop, BoolTest::ne, null(), likely); { |
2176 | 2176 |
2177 // Update graphKit memory and control from IdealKit. | 2177 // Update graphKit memory and control from IdealKit. |