RFR: 8264320: ShouldNotReachHere in Compile::print_inlining_move_to()

Vladimir Ivanov vlivanov at openjdk.java.net
Thu Apr 22 20:04:35 UTC 2021


Cloned `CallNode` gets a fresh `CallGenerator` which has to be put on `_print_inlining_list` when -XX:+PrintInlining is used.

Otherwise, if the  `CallGenerator` ends up on `_late_inlines` list (which is processed by `Compile::process_late_inline_calls_no_inline()`, `Compile::print_inlining_move_to()` can't locate it in `_print_inlining_list` and triggers the crash. 

The fix is to put cloned `CallGenerator` next to original one in `_print_inlining_list`.

Testing:
- [x] failing test
- [x] hs-tier1 - hs-tier4

-------------

Commit messages:
 - 8264320: ShouldNotReachHere in Compile::print_inlining_move_to()

Changes: https://git.openjdk.java.net/jdk/pull/3635/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3635&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8264320
  Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3635.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3635/head:pull/3635

PR: https://git.openjdk.java.net/jdk/pull/3635


More information about the hotspot-compiler-dev mailing list