[ZGC] Add support for heap capacity, nMethod and relocation summary#426
Merged
kcpeppe merged 3 commits intomicrosoft:mainfrom Apr 10, 2025
Merged
[ZGC] Add support for heap capacity, nMethod and relocation summary#426kcpeppe merged 3 commits intomicrosoft:mainfrom
kcpeppe merged 3 commits intomicrosoft:mainfrom
Conversation
Adds support for heap capacity summary. Adds fixes to ensure that temporary long[]'s and booleans are reset between phases to ensure no data is carried over between cycles.
Adds support for nMethod tracking in generational ZGC young and old generations.
This commit adds support for all the information for gc,reloc stats. This includes Small, Medium and Large page stats, bytes forward and the age table for all the pages, including Eden and Survivor generations. The Small, Medium and Large table stats are directly accessible on the ZGC cycle, where the page age summaries for Eden and all Survivor generations are included as a variable sized list. As far as I can tell this list can be as long at 14.
Contributor
|
Looks great and thank you for taking this on. Is it possible to add a test data to gctoolkit-testdata and add tests to ZGCParserTest, ZGCParserRulesTest? Unfortunately there isn't the equivalent of UnifiedG1GCParserTest for ZGC. This should be added but not as part of this PR. |
Collaborator
Author
|
@kcpeppe, Adding test data is something on my to-do list. I plan to to add testing for Generational ZGC in a follow up PR. |
kcpeppe
approved these changes
Apr 10, 2025
Merged
This was referenced Feb 26, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR includes 3 commits to add support for more of the missing info level logging output for Generational ZGC cycles. It includes the following: