RFR: 8342818: Implement JEP 509: JFR CPU-Time Profiling [v42]

Markus Grönlund mgronlun at openjdk.org
Wed Jun 4 08:17:31 UTC 2025


On Wed, 4 Jun 2025 06:29:59 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:

>> Any ideas? Or is it something for a later PR?
>
> I added another `_static_stop_signals` field which should prevent this.

The _instance is only ever deleted in case a JFR startup attempt fails as part of JfrRecorder::create(). The sampler must have a rate and become enrolled to serve clients (by installing timers). The rate is set post JfrRecorder::create() using the setting system, which implies that _instance != nullptr should be invariant.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25302#discussion_r2125976370


More information about the hotspot-dev mailing list