8227086: Use AS_NO_KEEPALIVE loads in HeapDumper
authorstefank
Tue, 02 Jul 2019 12:28:41 +0200
changeset 57813 80fad5f39a42
parent 57812 9bb28ccc6106
child 57814 699b8ef42f30
8227086: Use AS_NO_KEEPALIVE loads in HeapDumper Reviewed-by: kbarrett, sspitsyn
src/hotspot/share/services/heapDumper.cpp
--- a/src/hotspot/share/services/heapDumper.cpp	Mon Aug 19 12:40:27 2019 +0200
+++ b/src/hotspot/share/services/heapDumper.cpp	Tue Jul 02 12:28:41 2019 +0200
@@ -760,7 +760,7 @@
   switch (type) {
     case JVM_SIGNATURE_CLASS :
     case JVM_SIGNATURE_ARRAY : {
-      oop o = obj->obj_field_access<ON_UNKNOWN_OOP_REF>(offset);
+      oop o = obj->obj_field_access<ON_UNKNOWN_OOP_REF | AS_NO_KEEPALIVE>(offset);
       assert(oopDesc::is_oop_or_null(o), "Expected an oop or NULL at " PTR_FORMAT, p2i(o));
       writer->write_objectID(o);
       break;