Skip to content

Commit

Permalink
[GC] Fix data type in IOPrioritySizePolicy
Browse files Browse the repository at this point in the history
Summary: use SIZE_FORMAT to avoid build failure on windows

Testing: jtreg

Reviewers: maoliang.ml, yude.lyd

Issue: #855
  • Loading branch information
weixlu committed Aug 5, 2024
1 parent 38d15a6 commit ce580da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/parallel/psAdaptiveSizePolicy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ class IOPolicy : public CHeapObj<mtGC> {
* cpu 417487649 75106 102895030 23107566512 152075 65480092 6013218 0 0 0
*/
size_t user, nice, system, idle, iowait_time, irq, softirq, steal, guest, guest_nice;
int parse_line = sscanf(line, "cpu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu", &user,
&nice, &system, &idle, &iowait_time, &irq, &softirq, &steal, &guest, &guest_nice);
int parse_line = sscanf(line, "cpu " SIZE_FORMAT " " SIZE_FORMAT " " SIZE_FORMAT " " SIZE_FORMAT " " SIZE_FORMAT " " SIZE_FORMAT " " SIZE_FORMAT " " SIZE_FORMAT " " SIZE_FORMAT " " SIZE_FORMAT,
&user, &nice, &system, &idle, &iowait_time, &irq, &softirq, &steal, &guest, &guest_nice);
if (parse_line != 10) {
fill_value_fail(file);
return;
Expand Down

0 comments on commit ce580da

Please sign in to comment.