changeset 56031:80fad5f39a42

8227086: Use AS_NO_KEEPALIVE loads in HeapDumper Reviewed-by: kbarrett, sspitsyn
author stefank
date Tue, 02 Jul 2019 12:28:41 +0200
parents 9bb28ccc6106
children 699b8ef42f30
files src/hotspot/share/services/heapDumper.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;