Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[GR-60300] Fix -H:+PrintPointsToStatistics option and make it compatible with WP-SCCP #10281

Closed
wants to merge 1 commit into from

Conversation

graalvmbot
Copy link
Collaborator

This PR fixes the option -H:+PrintPointsToStatistics. On top of that, it ensures that all TypeState instances are properly registered via PointsToStats.registerTypeState (which is is nop if PrintPointsToStatistics is disabled).

PointsToStats.registerTypeState was refactored out of the constructors of Single and Multi TypeState, because when the constructors are invoked from a subclass (e.g. when creating ConstantTypeState), registerTypeState would receive a only a partially initialized object. I've instead moved registerTypeState into the places where instances of TypeState are created. Fortunately, most such places can be redirected via the factory methods in AnalysisPolicy, so the diff is quite small.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 10, 2024
@graalvmbot graalvmbot closed this Dec 12, 2024
@graalvmbot graalvmbot deleted the d-kozak/GR-60300/fix-print-pta-statistics branch December 12, 2024 05:11
# for free to join this conversation on GitHub. Already have an account? # 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