[jdk11u-dev] RFR: 8324754: WB_IsIntrinsicAvailable failed with "compiler not available" with option -Xint
lusou-zhangquan
duke at openjdk.org
Sun Feb 18 10:00:54 UTC 2024
On Fri, 9 Feb 2024 10:55:06 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:
> This should be fixed in mainline (https://github.com/openjdk/jdk) first and then the fix can then be backported to the update release repositories.
With JDK-8251462, WB_IsIntrinsicAvailable doesn't fail with `-Xint` after JDK17 because they use `CompilationPolicy::highest_compile_level()` to get the right compilation level in this commit.
Therefore, we have three ways to fix this problem on JDK11:
1. backport JDK-8251462
2. avoid running test case `TestAESMain` when `-Xint` is on by adding annotation `@requires vm.compMode != "Xint"`
3. return the right compilation level when `-Xint` is enabled on JDK11
This PR chooses the third way, that's the reason why it's not fixed in mainline.
-------------
PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2497#issuecomment-1951060631
More information about the jdk-updates-dev
mailing list