8388192: [lworld] Some code is not guarded by Arguments::is_valhalla_enabled() - #32123
8388192: [lworld] Some code is not guarded by Arguments::is_valhalla_enabled()#32123TobiHartmann wants to merge 3 commits into
Conversation
|
👋 Welcome back thartmann! A progress list of the required criteria for merging this PR into |
|
@TobiHartmann This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 20 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@TobiHartmann The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
Webrevs
|
|
Thanks Axel, good catch. I now also discovered the missing includes in the nopch build. Fixed! |
|
Thanks Axel! |
|
Thanks Christian! |
|
Hi, I have just prepared a similar change for the riscv64 platform. @TobiHartmann : Do you mind having it in this PR? Thanks. Verified with |
|
@TobiHartmann do you have asserts in Valhalla methods to check if it is enabled? It may help to find other places when check is missing. |
|
This fix solved some AOT code caching failures I see after merge with Valhalla. |
@RealFYang Sure, I added it. Thanks! |
|
/contributor add @RealFYang |
|
@TobiHartmann |
Good point. Most relevant methods either check directly: jdk/src/hotspot/share/ci/ciInstanceKlass.cpp Lines 777 to 779 in 5b2d699 Or they assert on some specific flag for an optimization that is only enabled when Valhalla is enabled: jdk/src/hotspot/share/runtime/signature.cpp Line 505 in 5b2d699 I think adding more asserts would still be useful, especially in the cases I fixed here. I filed JDK-8389595 to keep track of this. |
|
Thanks Christian! I'll integrate this to fix the failures that Vladimir mentioned. |
|
/integrate |
|
@TobiHartmann This pull request has not yet been marked as ready for integration. |
|
/integrate |
|
Going to push as commit 185c99f.
Your commit was automatically rebased without conflicts. |
|
@TobiHartmann Pushed as commit 185c99f. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Thank you |
This PR replaces the Valhalla draft PR 2640, which was already reviewed by @chhagedorn but was not integrated due to the code freeze immediately before the Valhalla mainline integration.
Some Valhalla specific code misses an
Arguments::is_valhalla_enabled()check.Thanks,
Tobias
Progress
Issue
Reviewers
Contributors
<fyang@openjdk.org>Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32123/head:pull/32123$ git checkout pull/32123Update a local copy of the PR:
$ git checkout pull/32123$ git pull https://git.openjdk.org/jdk.git pull/32123/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 32123View PR using the GUI difftool:
$ git pr show -t 32123Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32123.diff
Using Webrev
Link to Webrev Comment