Skip to content

Registering new ZGC classes #429

Answered by j-bahr
jlittle-ptc asked this question in Q&A
Discussion options

You must be logged in to vote

@jlittle-ptc

The ZGC collector supports legacy ZGC and Generational ZGC. Legacy is going away in newer versions of Java but I made an effort to leave support for it here. The structure of the events between versions are largely the same except that generational now has multiple phases, young only, young and old. The cycle data is largely the same between legacy (full gc) and the phases young and old. To accommodate this with the least amount of effort we have the structure shown below, FullZGCCycle, MajorZGCCycle and MinorZGCCycle which all extend from GCEvent. ZGCCycle is just an internal data class that holds the information from the cycle whether it's full, young or old generational data.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kcpeppe
Comment options

Answer selected by jlittle-ptc
Comment options

You must be logged in to vote
1 reply
@kcpeppe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants