Ignored IOException

Denghui Dong denghui.ddh at alibaba-inc.com
Mon Mar 8 03:12:39 UTC 2021


Hi,
I noticed that there is an ignored IO Exception in jdk.jfr.internal.PlatformRecording#stop, but I cannot open the related issue(8925030).

The problem I have is that when users use `java -XX:StartFlightRecording=name=test,duration=5m,filename=./dumped.jfr <App>`,
and the 'dumped.jfr' is accidentally deleted(e.g. by clean task), the final jfr file will not exist, and also no exception will be generated after the recording is ended.
Users need an extra step to generate the jfr file.

If there is a problem with throwing this exception, maybe we can print the exception information there, so that at least a reminder can be given to the user.

Any input is appreciated.

Thanks,
Denghui


More information about the hotspot-jfr-dev mailing list