8383832: AOTMode=required fails with "incompatible CompressedOops::base()"#31171
Open
iklam wants to merge 5 commits into
Open
8383832: AOTMode=required fails with "incompatible CompressedOops::base()"#31171iklam wants to merge 5 commits into
iklam wants to merge 5 commits into
Conversation
|
👋 Welcome back iklam! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
dholmes-ora
reviewed
May 15, 2026
Comment on lines
+128
to
+129
| "Always use HeapBasedNarrowOop mode, so that AOT code can be " \ | ||
| "always work regardless of runtime heap range") \ |
Member
There was a problem hiding this comment.
Suggested change
| "Always use HeapBasedNarrowOop mode, so that AOT code can be " \ | |
| "always work regardless of runtime heap range") \ | |
| "Always use HeapBasedNarrowOop mode, so that AOT code will " \ | |
| "always work regardless of runtime heap range") \ |
| "Use 32-bit object references in 64-bit VM. " \ | ||
| "lp64_product means flag is always constant in 32 bit VM") \ | ||
| \ | ||
| product(bool, AOTCompatibleOopCompression, false, DIAGNOSTIC, \ |
Member
There was a problem hiding this comment.
From the description and usage of this it does not seem to be a diagnostic flag at all.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In an AOT production run with
-XX:AOTMode=required(or with the alias-XX:AOTMode=on), the JVM sometimes fail to start with the message:This means that the AOT cache was created when the heap range is below 32GB, but in the production run, the heap is allocated above 32GB.
Solution:
Add a diagnostic option
-XX:+AOTCompatibleOopCompression. This will force theHeapBasedNarrowOopto be used in both AOT assembly and production, so the AOT code cache is always compatible with the production run.If you are planning to use
-XX:AOTMode=requiredas a "fail-fast debugging aid" (see this note in the man page), your AOT cache should be created with-XX:+AOTCompatibleOopCompressionProgress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31171/head:pull/31171$ git checkout pull/31171Update a local copy of the PR:
$ git checkout pull/31171$ git pull https://git.openjdk.org/jdk.git pull/31171/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 31171View PR using the GUI difftool:
$ git pr show -t 31171Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31171.diff
Using Webrev
Link to Webrev Comment