|
1 | 1 | /* |
2 | | - * Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
@@ -194,7 +194,7 @@ static ZDriverRequest rule_minor_allocation_rate_dynamic(const ZDirectorStats& s |
194 | 194 | const double time_until_gc = time_until_oom - actual_gc_duration; |
195 | 195 |
|
196 | 196 | log_debug(gc, director)("Rule Minor: Allocation Rate (Dynamic GC Workers), " |
197 | | - "MaxAllocRate: %.1fMB/s (+/-%.1f%%), Free: " SIZE_FORMAT "MB, GCCPUTime: %.3f, " |
| 197 | + "MaxAllocRate: %.1fMB/s (+/-%.1f%%), Free: %zuMB, GCCPUTime: %.3f, " |
198 | 198 | "GCDuration: %.3fs, TimeUntilOOM: %.3fs, TimeUntilGC: %.3fs, GCWorkers: %u", |
199 | 199 | alloc_rate / M, |
200 | 200 | alloc_rate_sd_percent * 100, |
@@ -288,7 +288,7 @@ static bool rule_minor_allocation_rate_static(const ZDirectorStats& stats) { |
288 | 288 | // time and end up starting the GC too late in the next interval. |
289 | 289 | const double time_until_gc = time_until_oom - gc_duration; |
290 | 290 |
|
291 | | - log_debug(gc, director)("Rule Minor: Allocation Rate (Static GC Workers), MaxAllocRate: %.1fMB/s, Free: " SIZE_FORMAT "MB, GCDuration: %.3fs, TimeUntilGC: %.3fs", |
| 291 | + log_debug(gc, director)("Rule Minor: Allocation Rate (Static GC Workers), MaxAllocRate: %.1fMB/s, Free: %zuMB, GCDuration: %.3fs, TimeUntilGC: %.3fs", |
292 | 292 | max_alloc_rate / M, free / M, gc_duration, time_until_gc); |
293 | 293 |
|
294 | 294 | return time_until_gc <= 0; |
@@ -386,7 +386,7 @@ static bool rule_minor_high_usage(const ZDirectorStats& stats) { |
386 | 386 | const double free_percent = percent_of(free, soft_max_capacity); |
387 | 387 |
|
388 | 388 | auto print_function = [&](size_t free, double free_percent) { |
389 | | - log_debug(gc, director)("Rule Minor: High Usage, Free: " SIZE_FORMAT "MB(%.1f%%)", |
| 389 | + log_debug(gc, director)("Rule Minor: High Usage, Free: %zuMB(%.1f%%)", |
390 | 390 | free / M, free_percent); |
391 | 391 | }; |
392 | 392 |
|
@@ -430,7 +430,7 @@ static bool rule_major_warmup(const ZDirectorStats& stats) { |
430 | 430 | const double used_threshold_percent = (stats._old_stats._cycle._nwarmup_cycles + 1) * 0.1; |
431 | 431 | const size_t used_threshold = (size_t)(soft_max_capacity * used_threshold_percent); |
432 | 432 |
|
433 | | - log_debug(gc, director)("Rule Major: Warmup %.0f%%, Used: " SIZE_FORMAT "MB, UsedThreshold: " SIZE_FORMAT "MB", |
| 433 | + log_debug(gc, director)("Rule Major: Warmup %.0f%%, Used: %zuMB, UsedThreshold: %zuMB", |
434 | 434 | used_threshold_percent * 100, used / M, used_threshold / M); |
435 | 435 |
|
436 | 436 | return used >= used_threshold; |
@@ -593,7 +593,7 @@ static bool rule_major_proactive(const ZDirectorStats& stats) { |
593 | 593 | const double time_since_last_gc_threshold = 5 * 60; // 5 minutes |
594 | 594 | if (used < used_threshold && time_since_last_gc < time_since_last_gc_threshold) { |
595 | 595 | // Don't even consider doing a proactive GC |
596 | | - log_debug(gc, director)("Rule Major: Proactive, UsedUntilEnabled: " SIZE_FORMAT "MB, TimeUntilEnabled: %.3fs", |
| 596 | + log_debug(gc, director)("Rule Major: Proactive, UsedUntilEnabled: %zuMB, TimeUntilEnabled: %.3fs", |
597 | 597 | (used_threshold - used) / M, |
598 | 598 | time_since_last_gc_threshold - time_since_last_gc); |
599 | 599 | return false; |
|
0 commit comments