RFR: 8284196: RISC-V: Detect supported ISA extensions over cpuinfo [v2]

Feilong Jiang fjiang at openjdk.org
Tue Feb 7 14:13:56 UTC 2023


On Tue, 7 Feb 2023 08:28:26 GMT, Ludovic Henry <luhenry at openjdk.org> wrote:

>> Feilong Jiang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fix typo
>
> src/hotspot/os_cpu/linux_riscv/vm_version_linux_riscv.cpp line 113:
> 
>> 111:       while (base_ext[i] != '\0') {
>> 112:         const char ch = base_ext[i++];
>> 113:         if (ch == 'i') {
> 
> Nit: You can use a `switch` case here, easier to read IMO.

switch/case looks better, fixed

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

PR: https://git.openjdk.org/jdk/pull/12343


More information about the hotspot-dev mailing list