This is a redo of #32066 and looks the same apart from a preview-warning suppression in the IR-framework. The cleanup to prevent the failures that lead to the backout of the original patch went in with #32316.
This PR aims to compile the compiler testlibrary in tests/hotspot/jtreg/compiler/lib into the test-image. However, this does not change how compiler tests using these libraries are run; they are still compiled by jtreg when running tests. This change is a convenience to be able to mechanically reduce tests using the IR or template frameworks without jtreg and thus needing those dependencies. Thanks, Manuel Testing: - [ ] Github Actions - [ ] tier1,tier2,tier3 --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Suppress expected preview warning - Add compiler testlibrary to the test-image Changes: https://git.openjdk.org/jdk/pull/32340/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32340&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8390109 Stats: 90 lines in 3 files changed: 89 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/32340.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32340/head:pull/32340 PR: https://git.openjdk.org/jdk/pull/32340
