RFR: 8262491: AArch64: CPU description should contain compatible board list [v6]

Yasumasa Suenaga ysuenaga at openjdk.java.net
Wed Mar 3 14:07:52 UTC 2021


On Wed, 3 Mar 2021 13:58:04 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> Yasumasa Suenaga has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix comments
>
> src/hotspot/os_cpu/linux_aarch64/vm_version_linux_aarch64.cpp line 189:
> 
>> 187:     close(fd);
>> 188:   }
>> 189: }
> 
> It's still wrong. If the read() call has filled the whole buffer, the string is not zero-terminated when this function returns.

So I set `\0` to the tail of `buf` at L178.

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

PR: https://git.openjdk.java.net/jdk/pull/2759


More information about the hotspot-dev mailing list