RFR: 8351952: [IR Framework]: allow ignoring methods that are not compilable
Emanuel Peter
epeter at openjdk.org
Mon Mar 17 15:41:46 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
-------------
Commit messages:
- restrict test
- improve test with @Run
- typo
- copyright years
- fix test
- more documentation
- minor fixes
- refactor with NotCompilableIRMethod
- more documentation
- fix tests, and impl with MethodNotCompilableException
- ... and 16 more: https://git.openjdk.org/jdk/compare/82eb7806...ce40f140
Changes: https://git.openjdk.org/jdk/pull/24049/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24049&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8351952
Stats: 433 lines in 16 files changed: 408 ins; 0 del; 25 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