equal
deleted
inserted
replaced
187 inline oop oopDesc::decode_heap_oop_not_null(narrowOop v) { |
187 inline oop oopDesc::decode_heap_oop_not_null(narrowOop v) { |
188 assert(!is_null(v), "narrow oop value can never be zero"); |
188 assert(!is_null(v), "narrow oop value can never be zero"); |
189 address base = Universe::narrow_oop_base(); |
189 address base = Universe::narrow_oop_base(); |
190 int shift = Universe::narrow_oop_shift(); |
190 int shift = Universe::narrow_oop_shift(); |
191 oop result = (oop)(void*)((uintptr_t)base + ((uintptr_t)v << shift)); |
191 oop result = (oop)(void*)((uintptr_t)base + ((uintptr_t)v << shift)); |
192 assert(check_obj_alignment(result), err_msg("address not aligned: " INTPTR_FORMAT, p2i((void*) result))); |
192 assert(check_obj_alignment(result), "address not aligned: " INTPTR_FORMAT, p2i((void*) result)); |
193 return result; |
193 return result; |
194 } |
194 } |
195 |
195 |
196 inline oop oopDesc::decode_heap_oop(narrowOop v) { |
196 inline oop oopDesc::decode_heap_oop(narrowOop v) { |
197 return is_null(v) ? (oop)NULL : decode_heap_oop_not_null(v); |
197 return is_null(v) ? (oop)NULL : decode_heap_oop_not_null(v); |