Skip to content

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
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