RFR: 8320237 C2: late inlining of method handle invoke causes duplicate lines in PrintInlining output

Kangcheng Xu kxu at openjdk.org
Mon Jan 8 17:45:31 UTC 2024


This PR resolves [JDK-8320237](https://bugs.openjdk.org/browse/JDK-8320237)

The original behavior produces both a failure and success message upon late inlining which is confusing. The patch removes the failure message if inlining was successful. Huge thanks to @rwestrel for reporting and working out a solution.

Unit test `test/hotspot/jtreg/compiler/inlining/TestDuplicatedLateInliningOutput.java` is added and passing.

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

Commit messages:
 - update test summary, requirements, and VM flags
 - Merge branch 'master' into JDK-8320237
 - make regex whitespace consistent
 - 8320237: C2: late inlining of method handle invoke causes duplicate lines in PrintInlining output

Changes: https://git.openjdk.org/jdk/pull/17147/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17147&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8320237
  Stats: 186 lines in 2 files changed: 186 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/17147.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17147/head:pull/17147

PR: https://git.openjdk.org/jdk/pull/17147


More information about the hotspot-compiler-dev mailing list