RFR: 8262491: AArch64: CPU description should contain compatible board list [v2]
Yasumasa Suenaga
ysuenaga at openjdk.java.net
Wed Mar 3 02:59:15 UTC 2021
On Tue, 2 Mar 2021 21:11:32 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:
>> Do you mean `VM_Version::get_compatible_board()` should return `NULL` instead of `AArch64` to add it as a prefix at the caller?
>> I don't want to do so because we should return board name as possible like a x86.
>>
>> In Windows AArch64, it seems to have SoC name in registry. Now I do not have Windows AArch64, so I just set "AArch64" for it, but I hope someone work for it in future.
>> https://stackoverflow.com/questions/60588765/how-to-get-cpu-brand-information-in-arm64
>
> Yes, I meant `NULL` or just `""`. Got it, you mean "AArch64" to be a placeholder. But description now starts with `AArch64` prefix, probably worth to keep it. Although it's fine in the current implementation.
Ok, I added "AArch64" as a prefix in CPU description in new commit.
We can see it as following:
jdk.CPUInformation {
startTime = 11:51:44.147
cpu = "AArch64"
description = "AArch64 raspberrypi,4-model-b brcm,bcm2711 0x41:0x0:0xd08:3, simd, crc"
sockets = 4
cores = 4
hwThreads = 4
}```
-------------
PR: https://git.openjdk.java.net/jdk/pull/2759
More information about the hotspot-dev
mailing list