Skip to content

Conversation

roberttoyonaga
Copy link
Collaborator

Description of Changes

This adds support for the JFR event jdk.ObjectAllocationInNewTLAB. This PR resolves the issue #5636

The JFR eventjdk.ObjectAllocationOutsideTLAB also exists, but does not seem applicable to native images because allocations are always done in new TLABs. For example, in Hotspot, if an allocation is larger than the largest possible TLAB size, or if TLAB allocation fails, then allocation is done outside of the TLAB. This is also true if the UseTLAB option is false. However, in SVM, all the aforementioned scenarios still result in using a new TLAB.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 20, 2022
@fniephaus
Copy link
Member

Is there any way we can test each JFR event and make sure we don't regress on anything?

@roberttoyonaga
Copy link
Collaborator Author

roberttoyonaga commented Dec 21, 2022

Is there any way we can test each JFR event and make sure we don't regress on anything?

I've added some tests in this internal PR. I have some additional tests for each of the other events I've worked on, including this one, but I've been waiting for that internal PR to be merged before adding them to a new PR to avoid conflicts (there's some shared infrastructure). Those tests only check for correctness though, they don't analyze performance.

@christianhaeubl
Copy link
Member

Thanks for implementing this event. The changes look good, I will do a few minor cleanups and merge your PR into master.

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

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants