Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

Add support for configuration conditions to foreign configuration files. This is a prerequisite to be able to write platform-independent configuration files (as soon as we have platform conditions).

Parsing and consuming the conditions is straight forward since the foreign configuration parser just needs to inherit from ConditionalConfigurationParser.

However, I needed to change the process that creates the stubs since stub registration may now happen during the analysis (if a type becomes reachable).
Previously, we created all stubs before analysis and so it was guaranteed that the analysis saw all of them.
Now, we use ImageHeapMaps to store the stubs which are automatically re-scanned.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 4, 2025
@graalvmbot graalvmbot merged commit 75f79d6 into master Jul 5, 2025
13 checks passed
@graalvmbot graalvmbot deleted the fa/GR-64144/foreign_conf_conditions branch July 5, 2025 13:32
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