Skip to content
Permalink
Browse files
8273020: LibraryCallKit::sharpen_unsafe_type does not handle narrow o…
…op array

Reviewed-by: chagedorn
  • Loading branch information
TobiHartmann committed Aug 27, 2021
1 parent 76baace commit c925c7f3e8e1470d0a157ca3387d11137366706f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/share/opto/library_call.cpp
@@ -2172,7 +2172,7 @@ const TypeOopPtr* LibraryCallKit::sharpen_unsafe_type(Compile::AliasType* alias_
// See if it is a narrow oop array.
if (adr_type->isa_aryptr()) {
if (adr_type->offset() >= objArrayOopDesc::base_offset_in_bytes()) {
const TypeOopPtr *elem_type = adr_type->is_aryptr()->elem()->isa_oopptr();
const TypeOopPtr* elem_type = adr_type->is_aryptr()->elem()->make_oopptr();
if (elem_type != NULL) {
sharpened_klass = elem_type->klass();
}

1 comment on commit c925c7f

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on c925c7f Aug 27, 2021

Please sign in to comment.