Commit 1e78f04
committed
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 5a8ecb7 commit 1e78f04
File tree
1 file changed
+1
-6
lines changed- compiler/src/jdk.graal.compiler/src/jdk/graal/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 | | |
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | 476 | | |
482 | 477 | | |
483 | 478 | | |
| |||
0 commit comments