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

Add support for thread local allocation stats #18202

Merged
merged 1 commit into from Oct 26, 2023

Conversation

tajila
Copy link
Contributor

@tajila tajila commented Sep 26, 2023

No description provided.

@tajila tajila force-pushed the issue3 branch 3 times, most recently from 8cddc42 to 7d91123 Compare October 5, 2023 17:06
@tajila tajila force-pushed the issue3 branch 7 times, most recently from ad804dd to 3245fea Compare October 25, 2023 19:08
Signed-off-by: Tobi Ajila <atobia@ca.ibm.com>
@tajila tajila requested a review from gacholio October 25, 2023 19:17
@tajila tajila marked this pull request as ready for review October 25, 2023 19:17
@gacholio
Copy link
Contributor

No description provided.

@gacholio
Copy link
Contributor

jenkins test sanity zlinux jdk21

@gacholio
Copy link
Contributor

jenkins compile win jdk8

@gacholio gacholio merged commit 350b747 into eclipse-openj9:master Oct 26, 2023
6 checks passed
if (mmfns->j9gc_get_cumulative_bytes_allocated_by_thread(currentThread, &allocatedBytes)) {
result = (jlong) allocatedBytes;
}
goto done;
Copy link
Contributor

Choose a reason for hiding this comment

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

This leads to a second call to internalExitVMToJNI(); perhaps the done label should be after that second call?

Copy link
Contributor

@gacholio gacholio Oct 26, 2023

Choose a reason for hiding this comment

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

Or remove the exit call above - the GC code is called with VM access below, so it must not care.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think removing the call above would be more consistent (then both places where `j9gc_get_cumulative_bytes_allocated_by_thread() are called would be in the VM).

@pshipton
Copy link
Member

@TobiAjila the new feature should be documented in the What's New. Please create a docs issue https://github.com/eclipse-openj9/openj9-docs/issues/

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

Successfully merging this pull request may close these issues.

None yet

4 participants