RFR: 8252473: [TESTBUG] compiler tests fail with minimal VM: Unrecognized VM option

Aleksey Shipilev shade at openjdk.org
Wed Mar 26 17:52:13 UTC 2025


On Wed, 26 Mar 2025 17:37:58 GMT, Zdenek Zambersky <zzambers at openjdk.org> wrote:

> This adds `@requires vm.compiler2.enabled` to tests, which fail with `Unrecognized VM option` on client VM.

test/hotspot/jtreg/compiler/arraycopy/TestCloneWithStressReflectiveCode.java line 28:

> 26:  * @bug 8284951
> 27:  * @summary Test clone intrinsic with StressReflectiveCode.
> 28:  * @requires vm.compiler2.enabled & vm.debug

Drive-by comment: multiple `@requires` get AND-ed automatically, so you can just drop a new line with `@requires vm.compiler2.enabled`, and it will still work.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24262#discussion_r2014731449


More information about the hotspot-compiler-dev mailing list