[13] RFR(S): 8224658: Unsafe access C2 compile fails with assert(flat != TypePtr::BOTTOM) failed: cannot alias-analyze an untyped ptr: adr_type = NULL

Tobias Hartmann tobias.hartmann at oracle.com
Thu May 23 12:39:28 UTC 2019


please review the following patch:

We hit an assert in alias analysis when compiling an unsafe off-heap access intrinsic with zero
address. We should simply bail out in this case because if that code is ever executed, it will crash
the VM anyway.

Thanks to Aleksey for reporting the issue and providing the test case.

Best regards,

More information about the hotspot-compiler-dev mailing list