JDK-8273020 : LibraryCallKit::sharpen_unsafe_type does not handle narrow oop array
Type:Bug
Component:hotspot
Sub-Component:compiler
Affected Version:11,17,18
Priority:P5
Status:Resolved
Resolution:Fixed
Submitted:2021-08-26
Updated:2021-09-28
Resolved:2021-08-27
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
The following code in LibraryCallKit::sharpen_unsafe_type sets elem_type to NULL if the array element is a narrow oop:
const TypeOopPtr *elem_type = adr_type->is_aryptr()->elem()->isa_oopptr();