Skip to content
Permalink
Browse files

8234508: VM_HeapWalkOperation::iterate_over_object reads non-strong f…

…ields with an on-strong load barrier

Reviewed-by: pliden, eosterlund
  • Loading branch information
stefank committed Dec 9, 2019
1 parent 5b155f0 commit c198b4da32389a398c5cbe4a5ef3493ac8ffddcd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/share/prims/jvmtiTagMap.cpp
@@ -2963,7 +2963,7 @@ inline bool VM_HeapWalkOperation::iterate_over_object(oop o) {
ClassFieldDescriptor* field = field_map->field_at(i);
char type = field->field_type();
if (!is_primitive_field_type(type)) {
oop fld_o = o->obj_field(field->field_offset());
oop fld_o = o->obj_field_access<AS_NO_KEEPALIVE | ON_UNKNOWN_OOP_REF>(field->field_offset());
// ignore any objects that aren't visible to profiler
if (fld_o != NULL) {
assert(Universe::heap()->is_in(fld_o), "unsafe code should not "

0 comments on commit c198b4d

Please sign in to comment.
You can’t perform that action at this time.