Skip to content

Add support for Native Image JFR on Windows#13332

Open
roberttoyonaga wants to merge 2 commits intooracle:masterfrom
roberttoyonaga:windows-jfr
Open

Add support for Native Image JFR on Windows#13332
roberttoyonaga wants to merge 2 commits intooracle:masterfrom
roberttoyonaga:windows-jfr

Conversation

@roberttoyonaga
Copy link
Copy Markdown
Collaborator

@roberttoyonaga roberttoyonaga commented Apr 14, 2026

Summary

This PR adds a Windows implementation for RawFileOperationSupport and enables JFR on Windows. New tests in RawFileOperationSupportTest have been added.

Related issue: #13184

More Details

  • WindowsRawFileOperationSupport allows JFR to write to chunk files. This is the main component that was missing and blocking Windows support.
  • JFR execution sampling relies on POSIX signals. This remains unsupported. I think this is fine for now and can be implemented at a later date.
  • The recently integrated JFR emergency dump feature also relies on some POSIX dependent code and remains unimplemented on Windows for now. The JFR emergency dump tests have been disabled on Windows.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 14, 2026
@roberttoyonaga roberttoyonaga added native-image ibm-redhat-interest native-image-jfr and removed OCA Verified All contributors have signed the Oracle Contributor Agreement. labels Apr 14, 2026
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 14, 2026
@roberttoyonaga
Copy link
Copy Markdown
Collaborator Author

The gate test /substratevm build,helloworld,native_unittests,standalone_pointsto_unittests JDKlatest is failing. It appears to be related to espresso, not the changes in this PR.

The espresso-compiler-stub suite is required for standalone pointsto tests.
Use `mx --dy /espresso-compiler-stub standalone-pointsto-unittest espresso`.
gate: 15 Apr 2026 14:08:28(+16:16) END:   standalone pointsto unittests [0:00:00.000657] [disk (free/total): 80.4GB/145.2GB]

I was unable to reproduce the problem on my machine with: mx --tools-java-home= gate --strict-mode --tags build,helloworld,native_unittests,standalone_pointsto_unittests

@thomaswue
Copy link
Copy Markdown
Member

This looks good to me and I do have the tests green. I will check if I can fix that failing GitHub action gate check, which seems a configuration/test issue.

@thomaswue
Copy link
Copy Markdown
Member

FYI, I am fixing up the wrongly wired GitHub action gate at #13349

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

Labels

ibm-redhat-interest native-image native-image-jfr OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants