Skip to content

Commit

Permalink
Fix toggling nextSlot value in ConstantPoolObjectSlotIterator.hpp
Browse files Browse the repository at this point in the history
Added toggling `nextSlot` value back to `true` in `scanCondySlot()` when
`_condySlotState` is `condy_slot_exception`, so that the iterator will
go on to the next slot in constant pool if the value of the slot is
`NULL`

Signed-off-by: Charles_Zheng <[email protected]>
  • Loading branch information
Charles_Zheng authored and Charles_Zheng committed Aug 27, 2018
1 parent c28567a commit 294445d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/gc_structs/ConstantPoolObjectSlotIterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class GC_ConstantPoolObjectSlotIterator
case condy_slot_exception:
result = &(((J9RAMConstantDynamicRef *) slotPtr)->exception);
_condySlotState = condy_slot_value;
*nextSlot = true;
break;
default:
Assert_MM_unreachable();
Expand Down

0 comments on commit 294445d

Please sign in to comment.