src/hotspot/share/opto/library_call.cpp
changeset 51485 0c7040d1d1ca
parent 51483 2d7bff7367c6
child 51514 1e332d63bd96
--- a/src/hotspot/share/opto/library_call.cpp	Wed Aug 22 13:01:26 2018 +0200
+++ b/src/hotspot/share/opto/library_call.cpp	Wed Aug 22 13:06:33 2018 +0200
@@ -3028,7 +3028,7 @@
   Node* p = basic_plus_adr(klass, in_bytes(Klass::java_mirror_offset()));
   Node* load = make_load(NULL, p, TypeRawPtr::NOTNULL, T_ADDRESS, MemNode::unordered);
   // mirror = ((OopHandle)mirror)->resolve();
-  return make_load(NULL, load, TypeInstPtr::MIRROR, T_OBJECT, MemNode::unordered);
+  return access_load(load, TypeInstPtr::MIRROR, T_OBJECT, IN_NATIVE);
 }
 
 //-----------------------load_klass_from_mirror_common-------------------------