-
Notifications
You must be signed in to change notification settings - Fork 780
Add JFR logging structures and for GC events #23076
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
base: master
Are you sure you want to change the base?
Conversation
43d5fb5 to
a2e5fb1
Compare
This change add a new api for a unique cycle ID. This should set the ID consistently for use throughout the entirety of the cycle. Also moving GC count to be incremented just before cycle start to be consistent with how it's now being done in OMR see eclipse-omr/omr#8065 Signed-off-by: Adrian Popescu <adpopescu@ibm.com>
This change adds all the necessary structures to add some new GC JFR events. Also adding JFR OldGarbageCollection event and test. Signed-off-by: Adrian Popescu <adpopescu@ibm.com>
a2e5fb1 to
08e257e
Compare
| } | ||
|
|
||
| /** | ||
| * API to return a unique GC ID based on what is set in cycle state. Returns 0 if there is no active GC cycle. |
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 recommend to put information about the return value next to @return.
| <output type="success" caseSensitive="yes" regex="no">classLoader</output> | ||
| <output type="failure" caseSensitive="yes" regex="no">jfr print: could not read recording</output> | ||
| </test> | ||
| <test id="test jfr OldGarbageCollection - approx 30 seconds"> |
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.
Should there be tests for the other new events as well?
| * @param userData[in] the registered user data | ||
| */ | ||
| static void | ||
| jfrOldGarbageCollection(J9HookInterface **hook, UDATA eventNum, void *eventData, void* userData) |
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.
void *userData
This change adds all the necessary structures to add some new
GC JFR events. Also adding JFR OldGarbageCollection event and test.
Depends on #23074