--- a/src/hotspot/share/opto/library_call.cpp Wed Jun 12 13:49:43 2019 +0200
+++ b/src/hotspot/share/opto/library_call.cpp Wed Jun 12 14:06:16 2019 +0200
@@ -2439,7 +2439,10 @@
val = is_store ? argument(4) : NULL;
- const TypePtr *adr_type = _gvn.type(adr)->isa_ptr();
+ const TypePtr* adr_type = _gvn.type(adr)->isa_ptr();
+ if (adr_type == TypePtr::NULL_PTR) {
+ return false; // off-heap access with zero address
+ }
// Try to categorize the address.
Compile::AliasType* alias_type = C->alias_type(adr_type);