RFR: 8252473: [TESTBUG] compiler tests fail with minimal VM: Unrecognized VM option
Emanuel Peter
epeter at openjdk.org
Tue Apr 29 16:36:49 UTC 2025
On Tue, 1 Apr 2025 16:23:49 GMT, Zdenek Zambersky <zzambers at openjdk.org> wrote:
>> @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.
>
>> Why not just add the compile flag `-XX:-IgnoreUnrecognizedVMOptions`? That could be a good alternative for most cases, I think.
>
> I saw that approach sometimes used as well. (My little, probably unfounded concern, would be, that typos in args could then be silently ignored.)
>
> I can change my PR to use `-XX:-IgnoreUnrecognizedVMOptions` instead, if that approach is preferable.
@zzambers Are you still working on this?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24262#issuecomment-2839535834
More information about the hotspot-compiler-dev
mailing list