You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/heap/ImageHeapScanner.java
+42-24Lines changed: 42 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -307,9 +307,7 @@ private Optional<JavaConstant> maybeReplace(JavaConstant constant, ScanReason re
307
307
} elseif (unwrappedinstanceofImageHeapConstant) {
308
308
throwGraalError.shouldNotReachHere(formatReason("Double wrapping of constant. Most likely, the reachability analysis code itself is seen as reachable.", reason)); // ExcludeFromJacocoGeneratedReport
309
309
}
310
-
if (unwrappedinstanceofString || unwrappedinstanceofEnum<?>) {
311
-
forceHashCodeComputation(unwrapped);
312
-
}
310
+
maybeForceHashCodeComputation(unwrapped);
313
311
314
312
/* Run all registered object replacers. */
315
313
if (constant.getJavaKind() == JavaKind.Object) {
@@ -328,12 +326,26 @@ private Optional<JavaConstant> maybeReplace(JavaConstant constant, ScanReason re
0 commit comments