Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Unified Serial GC correction #408

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open

Unified Serial GC correction #408

wants to merge 36 commits into from

Conversation

kcpeppe
Copy link
Collaborator

@kcpeppe kcpeppe commented Dec 20, 2024

Bunch of fixes but the important one is the fix to produce System GC full events.

kcpeppe and others added 30 commits January 8, 2024 22:35
…gTrace.java

Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
switch (forwardReference.getGarbageCollectionType()) {
case PSFull:
return fillOutFullGC(new PSFullGC(forwardReference.getStartTime(), forwardReference.getGCCause(), forwardReference.getDuration()), forwardReference);
if ( forwardReference.getGCCause().equals(GCCause.JAVA_LANG_SYSTEM))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like some of this is DRY / could be squashed down, on the other hand it's readable, so that wins!


private static final int[][] serialCounts = {
// 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17
{ 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new developer coming into this will struggle, can we add a comment stating what this array effectively tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants