8381975: CPU feature verification in AOTCodeCache should check for exact match#30796
8381975: CPU feature verification in AOTCodeCache should check for exact match#30796ashu-mehra wants to merge 5 commits intoopenjdk:masterfrom
Conversation
…act match Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
|
👋 Welcome back asmehra! A progress list of the required criteria for merging this PR into |
|
@ashu-mehra 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 137 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 |
|
@ashu-mehra 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
|
|
I have next changes in my AOT code cache patch. I think it could be included in your changes: |
|
@vnkozlov I think |
You are right. We don't need it in Interesting, for some reason I thought we could specify |
Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
|
@vnkozlov I added a commit to include your patch minus the changes to |
|
We need to add |
Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
Updated the test as suggested. |
|
Good. I submitted testing. |
|
windows-x64 tier1 failure looks like an infra issue. Tests didn't even start. |
|
My testing hit an other unexpected issue. For "JEP 516: Ahead-of-Time GC Agnostic Object Archiving" we allow different GCs in assembly and production if |
|
May be we should add this exception and simple skip AOT code instead of aborting VM. Lets talk about this on this week meeting. |
|
@iklam suggested to pass |
@vnkozlov For testing purpose we can pass btw do you have a list of tests that are failing and need |
|
I talked with @iklam and @katyapav and suggestion was to add
So far I found only this case with different GCs and only because it has I submitted 2 more tiers for testing. |
I think we should switch off stubs and adapters caching too. |
|
I have to restart testing because I used |
|
@ashu-mehra JBS marked as fixed because I used the same JBS id for testing setting changes in closed repo. |
|
/contributor add @vnkozlov |
|
@ashu-mehra |
|
/integrate |
|
Going to push as commit 5596e81.
Your commit was automatically rebased without conflicts. |
|
@ashu-mehra Pushed as commit 5596e81. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Update cpu feature verification in AOTCodeCache to check for exact match of runtime cpu features with the cached cpu features. Note that on x86-64, HT (hyperthreading) cpu feature bit is intentionally cleared out because it should not cause AOTCodeCache incompatibility.
While the earlier code allowed production run system to have more cpu features than the cached list, now with this patch it will result in AOTCodeCache load failure.
AOTCodeCPUFeatureIncompatibilityTest.javahas been updated accordingly. aarch64 test has also been added.Progress
Issue
Backport <hash>with the hash of the original commit. See Backports.Reviewers
Contributors
<kvn@openjdk.org>Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/30796/head:pull/30796$ git checkout pull/30796Update a local copy of the PR:
$ git checkout pull/30796$ git pull https://git.openjdk.org/jdk.git pull/30796/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 30796View PR using the GUI difftool:
$ git pr show -t 30796Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/30796.diff
Using Webrev
Link to Webrev Comment