Commit e565be0
Fix hash collisions in CompilationResultBuilder.buildLabelOffsets().
LIRInstruction#hashCode() was inadequate for use in (identity) hash maps, since it was based on #id() which for many instructions would be -1 or -2, causing excessive hash collisions.
Removing the hashCode() override so that the identity hash code is returned instead.1 parent 1476a27 commit e565be0
File tree
1 file changed
+1
-6
lines changed- compiler/src/jdk.internal.vm.compiler/src/org/graalvm/compiler/lir
1 file changed
+1
-6
lines changedLines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | 477 | | |
483 | 478 | | |
484 | 479 | | |
| |||
0 commit comments