RFR: 8342818: Implement JEP 509: JFR CPU-Time Profiling [v35]
Johannes Bechberger
jbechberger at openjdk.org
Tue Jun 3 12:39:49 UTC 2025
On Tue, 3 Jun 2025 12:30:18 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
>> src/hotspot/share/jfr/periodic/sampling/jfrCPUTimeThreadSampler.cpp line 235:
>>
>>> 233:
>>> 234: void JfrCPUTimeThreadSampler::on_javathread_create(JavaThread* thread) {
>>> 235: if (thread->is_Compiler_thread()) {
>>
>> is_hidden_from_external_view() + is_JfrRecorderThread() instead?
>
> tl->is_excluded() is volatile and can change during runtime, so it's better to add a timer unconditionally there.
why not just `is_excluded`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25302#discussion_r2123673323
More information about the hotspot-dev
mailing list