RFR: 8314114: Fix -Wconversion warnings in os code, primarily linux [v2]
Coleen Phillimore
coleenp at openjdk.org
Mon Aug 14 20:19:20 UTC 2023
On Mon, 14 Aug 2023 20:08:30 GMT, Dean Long <dlong at openjdk.org> wrote:
>> Made statlen size_t to match fread return.
>
> I still see "int statlen".
size_t statlen;
fp = os::fopen("/proc/self/stat", "r");
if (fp) {
statlen = fread(stat, 1, 2047, fp);
stat[statlen] = '\0';
fclose(fp);
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15229#discussion_r1293928139
More information about the hotspot-dev
mailing list