RFR: 8241678: Remove PerfData sampling via StatSampler [v2]

Casper Norrbin cnorrbin at openjdk.org
Tue Apr 29 09:53:48 UTC 2025


On Sat, 26 Apr 2025 11:31:39 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Casper Norrbin has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   feedback fixes
>
> There are still a few matches for "hrt.ticks"; don't know if they should be removed (in this PR or a followup).

Thank you for reviewing @albertnetymk! I'll look into the last traces of "hrt.ticks" to see if they can be removed here.

> src/hotspot/share/runtime/perfData.cpp line 455:
> 
>> 453:   assert(value != nullptr, "property name should be have a value: %s", name);
>> 454:   assert_system_property(name, value, CHECK);
>> 455:   if (value != nullptr) {
> 
> Why checking null again? Didn't we just asserted that 2 lines above?

This was from the original moved function, but I agree its redundant. Removed it now.

> src/hotspot/share/runtime/threads.cpp line 852:
> 
>> 850: #endif // INCLUDE_MANAGEMENT
>> 851: 
>> 852:   PerfDataManager::create_misc_perfdata();
> 
> Should this be guarded by `UsePerfData`?

It should, thank you for spotting.

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

PR Comment: https://git.openjdk.org/jdk/pull/24872#issuecomment-2838158557
PR Review Comment: https://git.openjdk.org/jdk/pull/24872#discussion_r2065957329
PR Review Comment: https://git.openjdk.org/jdk/pull/24872#discussion_r2065955553


More information about the hotspot-dev mailing list