RFR: 8283199: Linux os::cpu_microcode_revision() stalls cold startup [v3]

Aleksey Shipilev shade at openjdk.java.net
Tue Mar 22 14:35:18 UTC 2022


On Mon, 21 Mar 2022 12:59:53 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

>> Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Partially revert the buffer trim
>
> src/hotspot/os_cpu/linux_x86/os_linux_x86.cpp line 473:
> 
>> 471:       if (fgets(data, sizeof(data), fp)) {
>> 472:         sscanf(data, "%x", &result);
>> 473:       }
> 
> Just use fscanf? Would not need a buffer and be more compact.

Right, see new commit.

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

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


More information about the hotspot-runtime-dev mailing list