RFR: 8297933: [REDO] Compiler should only use verified interface types for optimization [v2]
Vladimir Kozlov
kvn at openjdk.org
Thu Dec 15 09:10:08 UTC 2022
On Thu, 15 Dec 2022 08:57:56 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> Which is the correct way? `@requires vm.gc == null | vm.gc.Parallel` or `@requires vm.gc.Parallel`?
>
> `@requires vm.gc.Parallel`
>
> [JDK-8160088](https://bugs.openjdk.org/browse/JDK-8160088) changed it from original `@requires vm.gc == "null" | vm.gc == "Parallel"`
Clarifying. `vm.gc.Parallel` is `true` when ParallelGC supported and its flag is specified on command line or no GC flags specified and any GC is selected ergonomically (which means it can be overwritten by flag on command lien). Which means the same as original `@requires`.
-------------
PR: https://git.openjdk.org/jdk/pull/11666
More information about the hotspot-compiler-dev
mailing list