Skip to content

Conversation

graalvmbot
Copy link
Collaborator

This PR introduces the -H:+PrintTypeStateMemoryFootprint option to print the estimated memory footprint for TypeState instances. It shows how much memory is allocated for TypeStates during analysis. This information can be used to compare analysis optimizations and TypeState representation changes. I have a PR in progres that introduces a more compact MultiTypeState and this PR provides a micrometric to measure its effects.

The memory footprint report introduced in this PR is also generated automatically as a part of -H:+PrintPointsToStatistics. The new flag -H:+PrintTypeStateMemoryFootprint is introduced because running the full -H:+PrintPointsToStatistics is resource-intensive, so we want to allow computing just the footprint if the rest is not required.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 10, 2025
@graalvmbot graalvmbot merged commit 3fdf22d into master Sep 11, 2025
13 checks passed
@graalvmbot graalvmbot deleted the d-kozak/GR-69548/typestate-memory-footprint branch September 11, 2025 01:06
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