Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

In layered image, there is one CGlobalData memory space per layer, so one CGlobalDataBasePointer is also needed for each layer.

Only non constant CGlobalData need to use this base address, so the only cases where issues could happen were in runtime compilation and on JNI library loading.

This PR ensure that the base pointer corresponding the the CGlobalData is accessed.

This PR also contains a small fix on LayeredImageHeapMap, where a layer with an empty map would not be skipped properly.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 23, 2025
@graalvmbot graalvmbot merged commit 69785bf into master Sep 24, 2025
13 checks passed
@graalvmbot graalvmbot deleted the scoppey/GR-69089/make-cglobal-base-pointer-layer-aware branch September 24, 2025 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants