RFR: 8366847: JFR reports incorrect number of cores on hybrid CPU [v2]
Yasumasa Suenaga
ysuenaga at openjdk.org
Tue Sep 16 13:25:44 UTC 2025
On Tue, 9 Sep 2025 11:32:20 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
>>> you might want to check the event in JMC just to be sure.
>>
>> I checked the flight record, but JMC 9.1 showed raw min_jlong value. I think it is a problem on JMC.
>>
>> <img width="812" height="340" alt="image" src="https://github.com/user-attachments/assets/1919ac46-77c5-4658-8fa1-8aea7aa6bef2" />
>>
>>
>>> Problem might be the API, e.g. int cores = event.getInt("cores") or Integer cores = event.getValue("cores").
>>
>> I hope the problem would be found by jdk_jfr tests - it passed on both GHA and my Linux box.
>
>> I checked the flight record, but JMC 9.1 showed raw min_jlong value. I think it is a problem on JMC.
>
> Interesting, it has worked in the past.
>
>> I hope the problem would be found by jdk_jfr tests
>
> Try to add:
>
> + event.getInt("cores");
> + Integer value = event.getValue("cores");
>
> to TestCPUInformation.java. There's no need to check in the changes, but it would be good to know what happens if it is a long value.
@egahlin Could you review?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27080#issuecomment-3296425149
More information about the hotspot-jfr-dev
mailing list