RFR: 8348554: Enhance Linux kernel version checks [v2]

Robbin Ehn rehn at openjdk.org
Fri Jan 24 11:35:49 UTC 2025


On Fri, 24 Jan 2025 11:14:22 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> I took another look; technically, only one is guaranteed by the source.
>> However, in practice, there are always three (checked in Linux v3).
>
> OK. I misread the code and thought the error is fatal when some components are not defined. But it is only a warning, so we are probably fine. Do you think it would be reasonable to initialize the components to `0`, though, so on 1- or 2-component version we would not have e.g. `2.18.-1`?

Yes, I think that is much better, thanks!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23291#discussion_r1928543614


More information about the hotspot-runtime-dev mailing list