-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8364269: Simplify code cache API by storing adapter entry offsets in blob #26532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back adinn! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
Webrevs
|
Cross-compile GHA jobs would be fixed once you pull from recent master. |
Testing: tier1 + runtime/cds/appcds |
@ashu-mehra @vnkozlov could you review this cleanup? |
Ah, sorry, the merge appears to have caused some issues in debug builds. Will let you know when this is ready again. |
@vnkozlov @ashu-mehra @shipilev Ok, problem fixed, I believe, but I'm still gob-smacked that this built, ran and passed tier1 plus cds/appcds tests on Linux/aarch64 given the failure to run the exploded image on Linux/x86 and MacOS/aarch64. The problem was with the blob layout. Adding extra fields to AdapterBlob requires propagating the adjusted blob size (i.e. header_size) up the Blob constructor chain, through BufferBlob into RuntimeBlob. Which I have now done -- previously, all subclasses were sized using sizeof(BufferBlob) as none of them had extra fields. without that fix the content_start address for the Adpater blob was being reported in the tail of the blob proper which meant that in the broken builds data fields were being treated as code and we end up in hyperspace when we first use an i2c adapter to jump to Object.init(). Yet not on Linux/aarch64? Go figure. Should be ready to review now. |
The AOT stub blob save and restore API handles Adapter blobs differently to other single-stub blobs by passing the associated entries in a separate auxiliary array. Storing the entry offsets in the blob, as happens with other generated blobs, simplifies the current save/restore API and implementation. It also makes it easier to define and implement an API extension supporting save and restore of multi-stub (StubGen) blobs.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26532/head:pull/26532
$ git checkout pull/26532
Update a local copy of the PR:
$ git checkout pull/26532
$ git pull https://git.openjdk.org/jdk.git pull/26532/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26532
View PR using the GUI difftool:
$ git pr show -t 26532
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26532.diff
Using Webrev
Link to Webrev Comment