Skip to content

Conversation

graalvmbot
Copy link
Collaborator

At the moment, Arena.ofShared (if enabled with -H:+SharedArenaSupport) does not work with runtime compilations. The image build already fails when attempting to instrument the @Scoped annotated methods because the expected structure is different.

This PR fixes that problem and prepares SubstrateOptimizeSharedArenaAccessPhase for use with runtime compilations.
However, we still do not instrument the deoptimization targets because for those, we cannot simply fake frame states.
So, shared sessions cannot be used safely in deoptimization targets at the moment.
This PR therefore introduces a check that does not allow shared sessions to be used in runtime compiled @Scope-annotated methods (an exception will be thrown at run time).

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 25, 2025
@graalvmbot graalvmbot merged commit e06f091 into master Jul 27, 2025
13 checks passed
@graalvmbot graalvmbot deleted the topic/GR-65268 branch July 27, 2025 13:20
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.

3 participants