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

Emanuel Peter epeter at openjdk.org
Thu Mar 20 06:17:16 UTC 2025


On Fri, 14 Mar 2025 08:48:21 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> 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
> 
> ---------------------------------------
> 
> **Background**
> 
> 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

This pull request has now been integrated.

Changeset: fb210e3a
Author:    Emanuel Peter <epeter at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fb210e3a7174bca1da112216158b2c1dede6dc34
Stats:     442 lines in 17 files changed: 415 ins; 0 del; 27 mod

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

Co-authored-by: Christian Hagedorn <chagedorn at openjdk.org>
Reviewed-by: chagedorn, thartmann

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

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


More information about the hotspot-compiler-dev mailing list