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 a method to set allocation sampling interval #5869

Merged
merged 1 commit into from
May 27, 2019

Conversation

JasonFengJ9
Copy link
Member

Add a method to set allocation sampling interval

Added a method j9gc_set_allocation_sampling_interval() to set a positive value at MM_GCExtensions::oolObjectSamplingBytesGranularity which is used to trigger a J9HOOK_MM_OBJECT_ALLOCATION_SAMPLING event.

This is a follow-up change of #4618 to support JEP 331.

Note: Trace points will be added within caller of j9gc_set_allocation_sampling_interval() and OpenJ9 j9vm.tdf, otherwise they need to be added to eclipse/OMR j9mm.tdf instead.
The test coverage for this method will be provided via JVMTI jtreg tests.

Reviewer: @charliegracie
FYI: @DanHeidinga @dmitripivkine

Signed-off-by: Jason Feng [email protected]

Added a method j9gc_set_allocation_sampling_interval() to set a positive
value at MM_GCExtensions::oolObjectSamplingBytesGranularity which is
used to trigger a J9HOOK_MM_OBJECT_ALLOCATION_SAMPLING event.

Signed-off-by: Jason Feng <[email protected]>
Copy link
Member

@DanHeidinga DanHeidinga left a comment

Choose a reason for hiding this comment

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

lgtm

@charliegracie
Copy link
Contributor

I believe the Travis build is sufficient but I will leave it up to @DanHeidinga or @dmitripivkine to decide

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

Successfully merging this pull request may close these issues.

4 participants