mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8014246: remove assert to catch access to object headers in index_oop_from_field_offset_long
Reviewed-by: twisti, jrose
This commit is contained in:
parent
9fbd8582b4
commit
aa61dce719
1 changed files with 0 additions and 2 deletions
|
@ -115,8 +115,6 @@ inline jint invocation_key_to_method_slot(jint key) {
|
|||
|
||||
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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue