Feature request
Please include the following information:
Is your feature request related to a problem? Please describe.
if you use jfr in your java code it builds on linux/osx when jfr is enabled but on windows it will always fail with a runtime error.
This means I can't easily add JFR to my java code without burdensome limits.
Describe the solution you'd like.
That JFR on windows does not fail and simply becomes a noop in windows native image.
Describe who do you think will benefit the most.
graalvm users and framework devs can use JFR without fearing it will break on windows.
Describe alternatives you've considered.
guard all creation of jfrevent base classes with if(FlightRecorder.isAvailable()) but that is lots of noise.
Additional context.
tamboui/tamboui#284 where it was discovered native image on windows fails when creating jfr based classes so can't even call isEnabled().
see #5410
Feature request
Please include the following information:
Is your feature request related to a problem? Please describe.
if you use jfr in your java code it builds on linux/osx when jfr is enabled but on windows it will always fail with a runtime error.
This means I can't easily add JFR to my java code without burdensome limits.
Describe the solution you'd like.
That JFR on windows does not fail and simply becomes a noop in windows native image.
Describe who do you think will benefit the most.
graalvm users and framework devs can use JFR without fearing it will break on windows.
Describe alternatives you've considered.
guard all creation of jfrevent base classes with
if(FlightRecorder.isAvailable())but that is lots of noise.Additional context.
tamboui/tamboui#284 where it was discovered native image on windows fails when creating jfr based classes so can't even call isEnabled().
see #5410