-
Notifications
You must be signed in to change notification settings - Fork 767
Modify scavenger GC count #22180
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
Modify scavenger GC count #22180
Conversation
@amicic These are the changes in openj9. |
This PR needs eclipse-omr/omr#7814 |
runtime/gc_trace/TgcParallel.cpp
Outdated
@@ -259,15 +259,15 @@ tgcHookLocalGcEnd(J9HookInterface** hook, uintptr_t eventNum, void* eventData, v | |||
tgcExtensions->printf(" (micros) (micros) freelist freelist scanlist scanlist lock arrays arraysize copycache lists deep objs list\n"); | |||
|
|||
scavengeTotalTime = event->incrementEndTime - event->incrementStartTime; | |||
uintptr_t gcCount = extensions->scavengerStats._gcCount; | |||
uintptr_t gcCount = extensions->incrementScavengerStats._gcCount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor but let's call the local: gcIncrementCount, and thnt use it later when doing the participation check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced it with j9gc_get_unique_GC_count. I think that's what you meant?
runtime/gc_trace/TgcDump.cpp
Outdated
@@ -61,7 +61,7 @@ tgcHookGlobalGcSweepEnd(J9HookInterface** hook, UDATA eventNum, void* eventData, | |||
gcCount = extensions->globalGCStats.gcCount; | |||
if (extensions->isStandardGC()) { | |||
#if defined(J9VM_GC_MODRON_SCAVENGER) | |||
gcCount += extensions->scavengerStats._gcCount; | |||
gcCount += extensions->incrementScavengerStats._gcCount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably want to be consistent with JFR counting (hence base it on cycle).
for the whole block, we should probably even just call j9gc_get_unique_GC_count
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with unique gc count.
1af8016
to
c927901
Compare
Oh wait. I should add in a change to use the omr function in gc_get_unique before you run any tests. Ok I added it in. |
This change aligns openj9 usage of incrementScavengerStats to be consistent with a recent change in omr. Signed-off-by: Adrian Popescu <[email protected]>
jenkins test sanity amac jdk21 |
This change aligns openj9 usage of incrementScavengerStats to be consistent with a recent change in omr.