Skip to content

Conversation

graalvmbot
Copy link
Collaborator

This PR allows the reflection metadata to be queried in extension layers to allow registering elements for reflection in extension layers.

There are two different changes:

  • ClassForNameSupport is now a MultiLayeredImageSingleton and looks in all knownClasses maps when querying a class name.
  • RuntimeMetadataEncoding is also a MultiLayeredImageSingleton and can be queried using a layerNumber. The CodeInfoTable.getFirstImageCodeInfo method also need to fetch the CodeInfo corresponding to a given layer. The layer number is stored in DynamicHub and corresponds to the layer in which the DynamicHub is first created. This means that currently, elements can only be registered for reflection in the layer they are first created.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 28, 2024
@graalvmbot graalvmbot force-pushed the scoppey/GR-57258/layered-reflection branch from 507d1d5 to 7ddf775 Compare August 28, 2024 17:23
@graalvmbot graalvmbot force-pushed the scoppey/GR-57258/layered-reflection branch from 7ddf775 to b58ddd6 Compare August 28, 2024 17:32
@graalvmbot graalvmbot closed this Aug 28, 2024
@graalvmbot graalvmbot deleted the scoppey/GR-57258/layered-reflection branch August 28, 2024 22:51
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