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

JFR: emit a large event if fails to write as an small event #4469

Merged
merged 7 commits into from
Apr 12, 2022

Conversation

zhengyu123
Copy link
Contributor

@zhengyu123 zhengyu123 commented Mar 31, 2022

Please review this patch that upgrades an event to an large event if it is failed to be emitted as a small event.

The implementation mirrors Hotspot implementation, through a retry mechanism.

I only apply retry to various length events, e.g. events contain string. For fixed length (uncompressed) events that obviously fit small events, I elect to add assert to ensure they are properly emitted.

This patch also fixes #3636

@zhengyu123 zhengyu123 changed the title JFR: emit large event if fails to write as an small event JFR: emit a large event if fails to write as an small event Apr 1, 2022
@jiekang jiekang requested a review from christianhaeubl April 1, 2022 15:20
Copy link
Member

@christianhaeubl christianhaeubl left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, I added a few comments.

@christianhaeubl
Copy link
Member

Thanks, this PR will get merged to master in the next few days.

@graalvmbot graalvmbot merged commit d9fd143 into oracle:master Apr 12, 2022
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.

4 participants