Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

This PR reduces the coupling between the standalone points-to analysis and hotspot to ease the migration towards project Terminus.

  • Avoid the use of HotSpotJVMCIRuntime in PointsToAnalyzer
    • This was used to create the StandaloneConstantReflectionProvider. Instead implement a generic StandaloneConstantReflectionProvider that works with any original ConstantReflectionProvider.
  • Avoid the use of a SnippetReflectionProvider in StandaloneConstantReflectionProvider
  • Avoid the use of "original" replacements in standalone pointsto
  • Wrap access to ClassLoader with ClassLoaderAccess

More work will be done in near future to further refactor the standalone analysis, but I want to split it into multiple PRs for ease of review. This PR is focused purely on reducing the amount of direct references to Hotspot classes and Java Reflection, not so much on the refactoring of the standalone analysis codebase.

gilles-duboscq and others added 4 commits October 13, 2025 11:54
This was used to create the StandaloneConstantReflectionProvider.
Instead implement a generic StandaloneConstantReflectionProvider that
works with any original ConstantReflectionProvider.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 13, 2025
@graalvmbot graalvmbot merged commit 8c608d6 into master Oct 13, 2025
13 checks passed
@graalvmbot graalvmbot deleted the d-kozak/GR-70176/refactor-standalone-pta branch October 13, 2025 20:34
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