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

Emanuel Peter epeter at openjdk.org
Tue Apr 1 16:06:22 UTC 2025


On Wed, 26 Mar 2025 17:40:35 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.
>
> Attached file which shows unrecognized VM options for individual tests.
> [unrecognized-options.txt](https://github.com/user-attachments/files/19472912/unrecognized-options.txt)

@zzambers
Generally we want to get away from `@requires vm.compiler2.enabled`, because it means tests are only run on C2 and not other compilers. For example if C2 is disabled and we only have C1. Or only interpreter. Or Graal ...

Why not just add the compile flag `-XX:-IgnoreUnrecognizedVMOptions`? That could be a good alternative for most cases, I think.

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

PR Comment: https://git.openjdk.org/jdk/pull/24262#issuecomment-2769867784


More information about the hotspot-compiler-dev mailing list