Skip to content

JFR Writer fixes part1 #19969

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

Merged
merged 1 commit into from
Aug 8, 2024
Merged

JFR Writer fixes part1 #19969

merged 1 commit into from
Aug 8, 2024

Conversation

tajila
Copy link
Contributor

@tajila tajila commented Aug 6, 2024

  • Add default entries for empty stack traces and unknown native methods.
  • Add missing free for stackframe entries after writing chunk.
  • Iterate the stack trace one before to get the real size.
  • JFR readers do not accepts UDATA_MAX values for BCI and line numers, so use 0 instead if values are unknown.
  • Add support for writing intermediate jfr files, currently we use this for debugging. But there are JFR modes that require this.
  • Add compressedInts flag to chunk writer.

There is more work to be done for handling internal native functions as well as fixing the timestamps this will be addressed in a future PR.

@tajila tajila requested a review from gacholio August 6, 2024 21:20
@tajila
Copy link
Contributor Author

tajila commented Aug 6, 2024

@gacholio please review these changes

@gacholio
Copy link
Contributor

gacholio commented Aug 6, 2024

No particular code in mind, but is there going to be any confusion between constant strings and allocated ones?

@tajila
Copy link
Contributor Author

tajila commented Aug 7, 2024

String entries have a free field to indicate if deallocation is requried after writing the chunk.

@gacholio
Copy link
Contributor

gacholio commented Aug 7, 2024

This looks fine. I won't insist on the += changes if you prefer things this way.

- Add default entries for empty stack traces and unknown native methods.
- Add missing free for stackframe entries after writing chunk.
- Iterate the stack trace one before to get the real size.
- JFR readers do not accepts UDATA_MAX values for BCI and line numers,
	so use 0 instead if values are unknown.
- Add support for writing intermediate jfr files, currently we use this
	for debugging. But there are JFR modes that require this.
- Add compressedInts flag to chunk writer.

There is more work to be done for handling internal native functions as
well as fixing the timestamps this will be addressed in a future PR.

Signed-off-by: Tobi Ajila <[email protected]>
@gacholio
Copy link
Contributor

gacholio commented Aug 8, 2024

jenkins test sanity xlinux jdk21

@gacholio gacholio merged commit 4e0a8c8 into eclipse-openj9:master Aug 8, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants