Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

Reads from stable arrays are currently not constant folded correctly. For example, java.lang.Integer$IntegerCache.cache is a 1 dimensional array with stableDimensions = 1. Reads from that array should be constant folded if the index is a constant as well.

This PR also fixes a problem with the rematerialization of boxed primitives during deoptimization. So far, we always created new instances when rematerializing boxed primitives. This is not correct for cached boxed primitives.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 20, 2025
@graalvmbot graalvmbot merged commit cc8444a into master Nov 21, 2025
12 of 13 checks passed
@graalvmbot graalvmbot deleted the chaeubl/GR-71261 branch November 21, 2025 16:54
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