src/hotspot/share/opto/library_call.cpp
changeset 55341 c63b9b87c28a
parent 54750 1851a532ddfe
child 55418 922a4a554807
--- 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);