Integrated: 8337876: [IR Framework] Add support for IR tests with @Stable

Christian Hagedorn chagedorn at openjdk.org
Fri Aug 9 07:20:45 UTC 2024


On Tue, 6 Aug 2024 11:43:32 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

> It is currently not possible to write IR tests with `@Stable` annotations because one need to somehow add the IR test classes to the boot classpath. This patch provides support to write such IR tests. I've added a section to the README to provide guidance on how this can be done.
> 
> This is motivated by https://github.com/openjdk/jdk/pull/19635.
> 
> I've tested this patch by taking the current patch of https://github.com/openjdk/jdk/pull/19635, dropping the `RestrictStable` flag and modifying the tests to work with the new IR framework feature:
> 
> TestFramework testFramework = new TestFramework();
> testFramework
>         .addFlags("-XX:-TieredCompilation",
>                   "-XX:+UseParallelGC")
>         .addTestClassesToBootClassPath()
>         .start();
> 
> 
> Thanks,
> Christian

This pull request has now been integrated.

Changeset: c01f53ac
Author:    Christian Hagedorn <chagedorn at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c01f53ac2dab1d4d2cd1e4d45a67f9373d4a9c7e
Stats:     103 lines in 5 files changed: 96 ins; 0 del; 7 mod

8337876: [IR Framework] Add support for IR tests with @Stable

Reviewed-by: shade, kvn

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

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


More information about the hotspot-compiler-dev mailing list