Skip to content

Commit

Permalink
Insert real reason at TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophTF committed Oct 26, 2024
1 parent d083c23 commit 5e2a8da
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ private ImageHeapArray createImageHeapObjectArray(JavaConstant constant, Analysi
/* Read hosted array element values only when the array is initialized. */
array.constantData.hostedValuesReader = new AnalysisFuture<>(() -> {
checkSealed(reason, "Trying to materialize an ImageHeapObjectArray for %s after the ImageHeapScanner is sealed.", constant);
try (var ignored = CausalityExport.setCause(CausalityEvents.Ignored)) { // TODO
var inHeap = CausalityEvents.TypeInHeap.create(type);
CausalityExport.registerEdgeFromHeapObject(bb, constant, reason, inHeap);
try (var ignored = CausalityExport.setCause(inHeap)) {
type.registerAsReachable(reason);
}
Object[] elementValues = new Object[length];
Expand Down

0 comments on commit 5e2a8da

Please sign in to comment.