Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

Best reviewed commit-by-commit.

This change updates our runtime metadata registrations to retain whether they were included due to -H:Preserve. This information is needed for differential tracing.

To track the "preserved" state, this change:

  • adds a boolean preserved field to RuntimeConditionSet, which is renamed to RuntimeDynamicAccessMetadata (no size change)
  • stuffs a bit in the modifiers field of methods/fields, including JNIAccessible[Field,Method] (no size change).
  • adds a boolean preserved field to JNIAccessibleClass (24 -> 32 bytes, per JOL). PR-bench did not report any image/footprint regressions.

Preserved resources are more involved to track, so they are deferred for this change (GR-68918).

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 23, 2025
@graalvmbot graalvmbot merged commit 9985762 into master Oct 23, 2025
13 checks passed
@graalvmbot graalvmbot deleted the mdsouza/GR-68320-track-preserved-elements branch October 23, 2025 17:08
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