< prev index next >
src/hotspot/share/opto/memnode.cpp
Print this page
rev 52415 : 8213371: GC/C2 abstraction and cleanup to handle custom offset for GC memory accesses
@@ -1695,11 +1695,11 @@
// Different array types begin at slightly different offsets (12 vs. 16).
// We choose T_BYTE as an example base type that is least restrictive
// as to alignment, which will therefore produce the smallest
// possible base offset.
const int min_base_off = arrayOopDesc::base_offset_in_bytes(T_BYTE);
- const bool off_beyond_header = ((uint)off >= (uint)min_base_off);
+ const bool off_beyond_header = (off >= min_base_off);
// Try to constant-fold a stable array element.
if (FoldStableValues && !is_mismatched_access() && ary->is_stable()) {
// Make sure the reference is not into the header and the offset is constant
ciObject* aobj = ary->const_oop();
< prev index next >