RFR: 8351952: [IR Framework]: allow ignoring methods that are not compilable [v2]

Emanuel Peter epeter at openjdk.org
Tue Mar 18 07:12:03 UTC 2025


> With the Template Framework, I'm generating IR tests randomly. But random code can always hit bailouts in compilation, and make code not compilable any more. We should have a way to disable this check, and just gracefully continue to execute the tests.
> 
> To allow a single test method to be `not compilable`:
> https://github.com/openjdk/jdk/blob/ce40f1402387f75ea8627883979e3cbf63480941/test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestNotCompilable.java#L160-L161
> 
> To allow all test methods to be `not compilable`:
> https://github.com/openjdk/jdk/blob/ce40f1402387f75ea8627883979e3cbf63480941/test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestNotCompilable.java#L140-L144
> 
> See also this documentation in the code:
> https://github.com/openjdk/jdk/blob/ce40f1402387f75ea8627883979e3cbf63480941/test/hotspot/jtreg/compiler/lib/ir_framework/Test.java#L88-L94
> 
> ---------------------------------------
> 
> **Backrgound**
> 
> My random code seems to hit a bailout in the Register Allocator, and I cannot do much to predict if that bailout happens.
> See https://bugs.openjdk.org/browse/JDK-8304328

Emanuel Peter has updated the pull request incrementally with one additional commit since the last revision:

  documentation from Christian

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24049/files
  - new: https://git.openjdk.org/jdk/pull/24049/files/ce40f140..e98dd89a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24049&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24049&range=00-01

  Stats: 9 lines in 3 files changed: 4 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/24049.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24049/head:pull/24049

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


More information about the hotspot-compiler-dev mailing list