RFR: 8371014: Dump JFR recording on CrashOnOutOfMemoryError is incorrectly implemented
Markus Grönlund
mgronlun at openjdk.org
Mon Jan 5 09:05:27 UTC 2026
On Sat, 29 Nov 2025 06:06:16 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:
> The jtreg test TestEmergencyDumpAtOOM.java runs into the following error on ppc64 platforms.
>
> JFR emergency dump would be kicked at `VMError::report_and_die()`, then Java thread for JFR would not work due to secondary signal handler for error reporting.
>
> Passed all of jdk_jfr tests on Linux AMD64.
This will not work because there is still a race against the JFR Recorder Thread flushing concurrently with LeakProfiler::emit_events(). This can place the checkpoints and events in a segment before the corresponding classes and methods that were tagged as part of emit_events(). This will break the parser, since constant artifacts will not be resolvable (an invariant is that a flushed segment is self-contained).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28563#issuecomment-3709513877
More information about the hotspot-dev
mailing list