Integrated: 8364090: Dump JFR recording on CrashOnOutOfMemoryError

Yasumasa Suenaga ysuenaga at openjdk.org
Thu Jul 31 12:15:06 UTC 2025


On Fri, 25 Jul 2025 00:52:29 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:

> JFR emergency dump would happen when OOM was thrown. However it would not contain most recent `OldObjectSample` events emitted by LeakProfiler.
> 
> I [reported this issue in past](https://mail.openjdk.org/pipermail/hotspot-jfr-dev/2019-January/000381.html), and it seems to be difficult to fix soon, and also JDK codebase has been updated in several years. It brings us to fix this issue easier than past.
> 
> So I propose again to emit the events from LeakProfiler when OOM happened.
> This change passed `jdk_jfr` tests on Linux x64 (excepts TestHeapSummaryEventPSParOld.java reported in [JDK-8364082](https://bugs.openjdk.org/browse/JDK-8364082))
> 
> Related email thread: https://mail.openjdk.org/pipermail/hotspot-jfr-dev/2025-July/008007.html

This pull request has now been integrated.

Changeset: 8ed214f3
Author:    Yasumasa Suenaga <ysuenaga at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/8ed214f3b1864ea0095d05497f782ce4131836d4
Stats:     138 lines in 7 files changed: 123 ins; 3 del; 12 mod

8364090: Dump JFR recording on CrashOnOutOfMemoryError

Reviewed-by: egahlin, stuefe

-------------

PR: https://git.openjdk.org/jdk/pull/26468


More information about the hotspot-jfr-dev mailing list