Mercurial > hg > graal-compiler
changeset 10399:609aad72004a
8014246: remove assert to catch access to object headers in index_oop_from_field_offset_long
Reviewed-by: twisti, jrose
author | anoll |
---|---|
date | Thu, 06 Jun 2013 09:29:38 -0700 |
parents | 2cb5d5f6d5e5 |
children | ef1818846c22 8d52e305a777 |
files | src/share/vm/prims/unsafe.cpp |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/prims/unsafe.cpp Tue Jun 04 22:16:15 2013 -0700 +++ b/src/share/vm/prims/unsafe.cpp Thu Jun 06 09:29:38 2013 -0700 @@ -115,8 +115,6 @@ inline void* index_oop_from_field_offset_long(oop p, jlong field_offset) { jlong byte_offset = field_offset_to_byte_offset(field_offset); - // Don't allow unsafe to be used to read or write the header word of oops - assert(p == NULL || field_offset >= oopDesc::header_size(), "offset must be outside of header"); #ifdef ASSERT if (p != NULL) { assert(byte_offset >= 0 && byte_offset <= (jlong)MAX_OBJECT_SIZE, "sane offset");