Skip to content

Commit b51aad5

Browse files
author
duke
committedJan 16, 2025
Automatic merge of jdk:master into master
2 parents cb52d26 + d218b54 commit b51aad5

19 files changed

+108
-112
lines changed
 

‎src/hotspot/cpu/aarch64/gc/z/zAddress_aarch64.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -85,7 +85,7 @@ static size_t probe_valid_max_address_bit() {
8585
munmap(result_addr, page_size);
8686
}
8787
}
88-
log_info_p(gc, init)("Probing address space for the highest valid bit: " SIZE_FORMAT, max_address_bit);
88+
log_info_p(gc, init)("Probing address space for the highest valid bit: %zu", max_address_bit);
8989
return MAX2(max_address_bit, MINIMUM_MAX_ADDRESS_BIT);
9090
#else // LINUX
9191
return DEFAULT_MAX_ADDRESS_BIT;

‎src/hotspot/cpu/arm/arm.ad

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2008, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
33
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
//
55
// This code is free software; you can redistribute it and/or modify it
@@ -283,7 +283,7 @@ void MachPrologNode::format( PhaseRegAlloc *ra_, outputStream *st ) const {
283283
}
284284
st->print_cr("PUSH R_FP|R_LR_LR"); st->print("\t");
285285
if (framesize != 0) {
286-
st->print ("SUB R_SP, R_SP, " SIZE_FORMAT,framesize);
286+
st->print ("SUB R_SP, R_SP, %zu", framesize);
287287
}
288288

289289
if (C->stub_function() == nullptr && BarrierSet::barrier_set()->barrier_set_nmethod() != nullptr) {
@@ -362,7 +362,7 @@ void MachEpilogNode::format( PhaseRegAlloc *ra_, outputStream *st ) const {
362362
framesize -= 2*wordSize;
363363

364364
if (framesize != 0) {
365-
st->print("ADD R_SP, R_SP, " SIZE_FORMAT "\n\t",framesize);
365+
st->print("ADD R_SP, R_SP, %zu\n\t",framesize);
366366
}
367367
st->print("POP R_FP|R_LR_LR");
368368

‎src/hotspot/cpu/ppc/gc/z/zAddress_ppc.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -82,7 +82,7 @@ static size_t probe_valid_max_address_bit() {
8282
munmap(result_addr, page_size);
8383
}
8484
}
85-
log_info_p(gc, init)("Probing address space for the highest valid bit: " SIZE_FORMAT, max_address_bit);
85+
log_info_p(gc, init)("Probing address space for the highest valid bit: %zu", max_address_bit);
8686
return MAX2(max_address_bit, MINIMUM_MAX_ADDRESS_BIT);
8787
#else // LINUX
8888
return DEFAULT_MAX_ADDRESS_BIT;

‎src/hotspot/cpu/riscv/gc/z/zAddress_riscv.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2023, Huawei Technologies Co., Ltd. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -84,7 +84,7 @@ static size_t probe_valid_max_address_bit() {
8484
munmap(result_addr, page_size);
8585
}
8686
}
87-
log_info_p(gc, init)("Probing address space for the highest valid bit: " SIZE_FORMAT, max_address_bit);
87+
log_info_p(gc, init)("Probing address space for the highest valid bit: %zu", max_address_bit);
8888
return MAX2(max_address_bit, MINIMUM_MAX_ADDRESS_BIT);
8989
#else // LINUX
9090
return DEFAULT_MAX_ADDRESS_BIT;

‎src/hotspot/cpu/s390/macroAssembler_s390.inline.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2016, 2023 SAP SE. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -75,7 +75,7 @@ inline void MacroAssembler::load_address(Register d, const Address &a) {
7575
} else if (Displacement::is_validDisp(a.disp())) {
7676
z_lay(d, a.disp(), a.indexOrR0(), a.baseOrR0());
7777
} else {
78-
guarantee(false, "displacement = " SIZE_FORMAT_X ", out of range for LA/LAY", a.disp());
78+
guarantee(false, "displacement = 0x%zx, out of range for LA/LAY", a.disp());
7979
}
8080
}
8181

‎src/hotspot/cpu/x86/gc/z/zAddress_x86.inline.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,7 @@ inline uintptr_t ZPointer::remap_bits(uintptr_t colored) {
3232

3333
inline constexpr int ZPointer::load_shift_lookup(uintptr_t value) {
3434
const size_t index = load_shift_lookup_index(value);
35-
assert(index == 0 || is_power_of_2(index), "Incorrect load shift: " SIZE_FORMAT, index);
35+
assert(index == 0 || is_power_of_2(index), "Incorrect load shift: %zu", index);
3636
return ZPointerLoadShiftTable[index];
3737
}
3838

‎src/hotspot/os/aix/loadlib_aix.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2012, 2024 SAP SE. All rights reserved.
44
* Copyright (c) 2022, IBM Corp.
55
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -203,7 +203,7 @@ static bool reload_table() {
203203
}
204204
}
205205

206-
trcVerbose("loadquery buffer size is " SIZE_FORMAT ".", buflen);
206+
trcVerbose("loadquery buffer size is %zu.", buflen);
207207

208208
// Iterate over the loadquery result. For details see sys/ldr.h on AIX.
209209
ldi = (struct ld_info*) buffer;
@@ -262,7 +262,7 @@ static bool reload_table() {
262262
lm->is_in_vm = true;
263263
}
264264

265-
trcVerbose("entry: %p " SIZE_FORMAT ", %p " SIZE_FORMAT ", %s %s %s, %d",
265+
trcVerbose("entry: %p %zu, %p %zu, %s %s %s, %d",
266266
lm->text, lm->text_len,
267267
lm->data, lm->data_len,
268268
lm->path, lm->shortname,

‎src/hotspot/os/aix/os_aix.cpp

+18-19
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static void query_multipage_support() {
450450
if (p != (void*) -1) {
451451
const size_t real_pagesize = os::Aix::query_pagesize(p);
452452
if (real_pagesize != pagesize) {
453-
log_warning(pagesize)("real page size (" SIZE_FORMAT_X ") differs.", real_pagesize);
453+
log_warning(pagesize)("real page size (0x%zx) differs.", real_pagesize);
454454
} else {
455455
can_use = true;
456456
}
@@ -632,7 +632,7 @@ static void *thread_native_entry(Thread *thread) {
632632
address low_address = thread->stack_end();
633633
address high_address = thread->stack_base();
634634
lt.print("Thread is alive (tid: %zu, kernel thread id: %zu"
635-
", stack [" PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "k using %luk pages)).",
635+
", stack [" PTR_FORMAT " - " PTR_FORMAT " (%zuk using %luk pages)).",
636636
os::current_thread_id(), (uintx) kernel_thread_id, p2i(low_address), p2i(high_address),
637637
(high_address - low_address) / K, os::Aix::query_pagesize(low_address) / K);
638638
}
@@ -733,7 +733,7 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
733733
// guard pages might not fit on the tiny stack created.
734734
int ret = pthread_attr_setstacksize(&attr, stack_size);
735735
if (ret != 0) {
736-
log_warning(os, thread)("The %sthread stack size specified is invalid: " SIZE_FORMAT "k",
736+
log_warning(os, thread)("The %sthread stack size specified is invalid: %zuk",
737737
(thr_type == compiler_thread) ? "compiler " : ((thr_type == java_thread) ? "" : "VM "),
738738
stack_size / K);
739739
thread->set_osthread(nullptr);
@@ -769,7 +769,7 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
769769
thread->name(), ret, os::errno_name(ret), os::Posix::describe_pthread_attr(buf, sizeof(buf), &attr));
770770
// Log some OS information which might explain why creating the thread failed.
771771
log_warning(os, thread)("Number of threads approx. running in the VM: %d", Threads::number_of_threads());
772-
log_warning(os, thread)("Checking JVM parameter MaxExpectedDataSegmentSize (currently " SIZE_FORMAT "k) might be helpful", MaxExpectedDataSegmentSize/K);
772+
log_warning(os, thread)("Checking JVM parameter MaxExpectedDataSegmentSize (currently %zuk) might be helpful", MaxExpectedDataSegmentSize/K);
773773
LogStream st(Log(os, thread)::info());
774774
os::Posix::print_rlimit_info(&st);
775775
os::print_memory_info(&st);
@@ -840,7 +840,7 @@ bool os::create_attached_thread(JavaThread* thread) {
840840
PosixSignals::hotspot_sigmask(thread);
841841

842842
log_info(os, thread)("Thread attached (tid: %zu, kernel thread id: %zu"
843-
", stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "K) ).",
843+
", stack: " PTR_FORMAT " - " PTR_FORMAT " (%zuK) ).",
844844
os::current_thread_id(), (uintx) kernel_thread_id,
845845
p2i(thread->stack_base()), p2i(thread->stack_end()), thread->stack_size() / K);
846846

@@ -1194,21 +1194,21 @@ void os::print_memory_info(outputStream* st) {
11941194

11951195
os::Aix::meminfo_t mi;
11961196
if (os::Aix::get_meminfo(&mi)) {
1197-
st->print_cr("physical total : " SIZE_FORMAT, mi.real_total);
1198-
st->print_cr("physical free : " SIZE_FORMAT, mi.real_free);
1199-
st->print_cr("swap total : " SIZE_FORMAT, mi.pgsp_total);
1200-
st->print_cr("swap free : " SIZE_FORMAT, mi.pgsp_free);
1197+
st->print_cr("physical total : %zu", mi.real_total);
1198+
st->print_cr("physical free : %zu", mi.real_free);
1199+
st->print_cr("swap total : %zu", mi.pgsp_total);
1200+
st->print_cr("swap free : %zu", mi.pgsp_free);
12011201
}
12021202
st->cr();
12031203

12041204
// Print program break.
12051205
st->print_cr("Program break at VM startup: " PTR_FORMAT ".", p2i(g_brk_at_startup));
12061206
address brk_now = (address)::sbrk(0);
12071207
if (brk_now != (address)-1) {
1208-
st->print_cr("Program break now : " PTR_FORMAT " (distance: " SIZE_FORMAT "k).",
1208+
st->print_cr("Program break now : " PTR_FORMAT " (distance: %zuk).",
12091209
p2i(brk_now), (size_t)((brk_now - g_brk_at_startup) / K));
12101210
}
1211-
st->print_cr("MaxExpectedDataSegmentSize : " SIZE_FORMAT "k.", MaxExpectedDataSegmentSize / K);
1211+
st->print_cr("MaxExpectedDataSegmentSize : %zuk.", MaxExpectedDataSegmentSize / K);
12121212
st->cr();
12131213

12141214
// Print segments allocated with os::reserve_memory.
@@ -1533,7 +1533,7 @@ static char* reserve_shmated_memory (size_t bytes, char* requested_addr) {
15331533
// work (see above), the system may have given us something other then 4K (LDR_CNTRL).
15341534
const size_t real_pagesize = os::Aix::query_pagesize(addr);
15351535
if (real_pagesize != (size_t)shmbuf.shm_pagesize) {
1536-
log_trace(os, map)("pagesize is, surprisingly, " SIZE_FORMAT,
1536+
log_trace(os, map)("pagesize is, surprisingly, %zu",
15371537
real_pagesize);
15381538
}
15391539

@@ -1759,9 +1759,8 @@ static bool uncommit_mmaped_memory(char* addr, size_t size) {
17591759
#ifdef PRODUCT
17601760
static void warn_fail_commit_memory(char* addr, size_t size, bool exec,
17611761
int err) {
1762-
warning("INFO: os::commit_memory(" PTR_FORMAT ", " SIZE_FORMAT
1763-
", %d) failed; error='%s' (errno=%d)", p2i(addr), size, exec,
1764-
os::errno_name(err), err);
1762+
warning("INFO: os::commit_memory(" PTR_FORMAT ", %zu, %d) failed; error='%s' (errno=%d)",
1763+
p2i(addr), size, exec, os::errno_name(err), err);
17651764
}
17661765
#endif
17671766

@@ -1778,10 +1777,10 @@ void os::pd_commit_memory_or_exit(char* addr, size_t size, bool exec,
17781777
bool os::pd_commit_memory(char* addr, size_t size, bool exec) {
17791778

17801779
assert(is_aligned_to(addr, os::vm_page_size()),
1781-
"addr " PTR_FORMAT " not aligned to vm_page_size (" SIZE_FORMAT ")",
1780+
"addr " PTR_FORMAT " not aligned to vm_page_size (%zu)",
17821781
p2i(addr), os::vm_page_size());
17831782
assert(is_aligned_to(size, os::vm_page_size()),
1784-
"size " PTR_FORMAT " not aligned to vm_page_size (" SIZE_FORMAT ")",
1783+
"size " PTR_FORMAT " not aligned to vm_page_size (%zu)",
17851784
size, os::vm_page_size());
17861785

17871786
vmembk_t* const vmi = vmembk_find(addr);
@@ -1813,10 +1812,10 @@ void os::pd_commit_memory_or_exit(char* addr, size_t size,
18131812

18141813
bool os::pd_uncommit_memory(char* addr, size_t size, bool exec) {
18151814
assert(is_aligned_to(addr, os::vm_page_size()),
1816-
"addr " PTR_FORMAT " not aligned to vm_page_size (" SIZE_FORMAT ")",
1815+
"addr " PTR_FORMAT " not aligned to vm_page_size (%zu)",
18171816
p2i(addr), os::vm_page_size());
18181817
assert(is_aligned_to(size, os::vm_page_size()),
1819-
"size " PTR_FORMAT " not aligned to vm_page_size (" SIZE_FORMAT ")",
1818+
"size " PTR_FORMAT " not aligned to vm_page_size (%zu)",
18201819
size, os::vm_page_size());
18211820

18221821
// Dynamically do different things for mmap/shmat.

‎src/hotspot/os/bsd/gc/z/zPhysicalMemoryBacking_bsd.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -102,7 +102,7 @@ bool ZPhysicalMemoryBacking::commit_inner(zoffset offset, size_t length) const {
102102
assert(is_aligned(untype(offset), os::vm_page_size()), "Invalid offset");
103103
assert(is_aligned(length, os::vm_page_size()), "Invalid length");
104104

105-
log_trace(gc, heap)("Committing memory: " SIZE_FORMAT "M-" SIZE_FORMAT "M (" SIZE_FORMAT "M)",
105+
log_trace(gc, heap)("Committing memory: %zuM-%zuM (%zuM)",
106106
untype(offset) / M, untype(to_zoffset_end(offset, length)) / M, length / M);
107107

108108
const uintptr_t addr = _base + untype(offset);
@@ -149,7 +149,7 @@ size_t ZPhysicalMemoryBacking::uncommit(zoffset offset, size_t length) const {
149149
assert(is_aligned(untype(offset), os::vm_page_size()), "Invalid offset");
150150
assert(is_aligned(length, os::vm_page_size()), "Invalid length");
151151

152-
log_trace(gc, heap)("Uncommitting memory: " SIZE_FORMAT "M-" SIZE_FORMAT "M (" SIZE_FORMAT "M)",
152+
log_trace(gc, heap)("Uncommitting memory: %zuM-%zuM (%zuM)",
153153
untype(offset) / M, untype(to_zoffset_end(offset, length)) / M, length / M);
154154

155155
const uintptr_t start = _base + untype(offset);

‎src/hotspot/os/bsd/os_bsd.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ bool os::create_attached_thread(JavaThread* thread) {
754754
PosixSignals::hotspot_sigmask(thread);
755755

756756
log_info(os, thread)("Thread attached (tid: %zu, pthread id: %zu"
757-
", stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "K) ).",
757+
", stack: " PTR_FORMAT " - " PTR_FORMAT " (%zuK) ).",
758758
os::current_thread_id(), (uintx) pthread_self(),
759759
p2i(thread->stack_base()), p2i(thread->stack_end()), thread->stack_size() / K);
760760
return true;
@@ -1468,7 +1468,7 @@ void os::print_memory_info(outputStream* st) {
14681468
size_t size = sizeof(swap_usage);
14691469

14701470
st->print("Memory:");
1471-
st->print(" " SIZE_FORMAT "k page", os::vm_page_size()>>10);
1471+
st->print(" %zuk page", os::vm_page_size()>>10);
14721472

14731473
st->print(", physical " UINT64_FORMAT "k",
14741474
os::physical_memory() >> 10);
@@ -1600,7 +1600,7 @@ void os::jvm_path(char *buf, jint buflen) {
16001600

16011601
static void warn_fail_commit_memory(char* addr, size_t size, bool exec,
16021602
int err) {
1603-
warning("INFO: os::commit_memory(" INTPTR_FORMAT ", " SIZE_FORMAT
1603+
warning("INFO: os::commit_memory(" INTPTR_FORMAT ", %zu"
16041604
", %d) failed; error='%s' (errno=%d)", (intptr_t)addr, size, exec,
16051605
os::errno_name(err), err);
16061606
}

‎src/hotspot/os/linux/gc/z/zPhysicalMemoryBacking_linux.cpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
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.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -185,13 +185,13 @@ ZPhysicalMemoryBacking::ZPhysicalMemoryBacking(size_t max_capacity)
185185

186186
// Make sure the filesystem block size is compatible
187187
if (ZGranuleSize % _block_size != 0) {
188-
ZInitialize::error("Filesystem backing the heap has incompatible block size (" SIZE_FORMAT ")",
188+
ZInitialize::error("Filesystem backing the heap has incompatible block size (%zu)",
189189
_block_size);
190190
return;
191191
}
192192

193193
if (is_hugetlbfs() && _block_size != ZGranuleSize) {
194-
ZInitialize::error("%s filesystem has unexpected block size " SIZE_FORMAT " (expected " SIZE_FORMAT ")",
194+
ZInitialize::error("%s filesystem has unexpected block size %zu (expected %zu)",
195195
ZFILESYSTEM_HUGETLBFS, _block_size, ZGranuleSize);
196196
return;
197197
}
@@ -316,17 +316,17 @@ void ZPhysicalMemoryBacking::warn_available_space(size_t max_capacity) const {
316316
return;
317317
}
318318

319-
log_info_p(gc, init)("Available space on backing filesystem: " SIZE_FORMAT "M", _available / M);
319+
log_info_p(gc, init)("Available space on backing filesystem: %zuM", _available / M);
320320

321321
// Warn if the filesystem doesn't currently have enough space available to hold
322322
// the max heap size. The max heap size will be capped if we later hit this limit
323323
// when trying to expand the heap.
324324
if (_available < max_capacity) {
325325
log_warning_p(gc)("***** WARNING! INCORRECT SYSTEM CONFIGURATION DETECTED! *****");
326326
log_warning_p(gc)("Not enough space available on the backing filesystem to hold the current max Java heap");
327-
log_warning_p(gc)("size (" SIZE_FORMAT "M). Please adjust the size of the backing filesystem accordingly "
327+
log_warning_p(gc)("size (%zuM). Please adjust the size of the backing filesystem accordingly "
328328
"(available", max_capacity / M);
329-
log_warning_p(gc)("space is currently " SIZE_FORMAT "M). Continuing execution with the current filesystem "
329+
log_warning_p(gc)("space is currently %zuM). Continuing execution with the current filesystem "
330330
"size could", _available / M);
331331
log_warning_p(gc)("lead to a premature OutOfMemoryError being thrown, due to failure to commit memory.");
332332
}
@@ -342,7 +342,7 @@ void ZPhysicalMemoryBacking::warn_max_map_count(size_t max_capacity) const {
342342
}
343343

344344
size_t actual_max_map_count = 0;
345-
const int result = fscanf(file, SIZE_FORMAT, &actual_max_map_count);
345+
const int result = fscanf(file, "%zu", &actual_max_map_count);
346346
fclose(file);
347347
if (result != 1) {
348348
// Failed to read file, skip check
@@ -359,9 +359,9 @@ void ZPhysicalMemoryBacking::warn_max_map_count(size_t max_capacity) const {
359359
if (actual_max_map_count < required_max_map_count) {
360360
log_warning_p(gc)("***** WARNING! INCORRECT SYSTEM CONFIGURATION DETECTED! *****");
361361
log_warning_p(gc)("The system limit on number of memory mappings per process might be too low for the given");
362-
log_warning_p(gc)("max Java heap size (" SIZE_FORMAT "M). Please adjust %s to allow for at",
362+
log_warning_p(gc)("max Java heap size (%zuM). Please adjust %s to allow for at",
363363
max_capacity / M, filename);
364-
log_warning_p(gc)("least " SIZE_FORMAT " mappings (current limit is " SIZE_FORMAT "). Continuing execution "
364+
log_warning_p(gc)("least %zu mappings (current limit is %zu). Continuing execution "
365365
"with the current", required_max_map_count, actual_max_map_count);
366366
log_warning_p(gc)("limit could lead to a premature OutOfMemoryError being thrown, due to failure to map memory.");
367367
}
@@ -598,7 +598,7 @@ ZErrno ZPhysicalMemoryBacking::fallocate(bool punch_hole, zoffset offset, size_t
598598
}
599599

600600
bool ZPhysicalMemoryBacking::commit_inner(zoffset offset, size_t length) const {
601-
log_trace(gc, heap)("Committing memory: " SIZE_FORMAT "M-" SIZE_FORMAT "M (" SIZE_FORMAT "M)",
601+
log_trace(gc, heap)("Committing memory: %zuM-%zuM (%zuM)",
602602
untype(offset) / M, untype(to_zoffset_end(offset, length)) / M, length / M);
603603

604604
retry:
@@ -698,7 +698,7 @@ size_t ZPhysicalMemoryBacking::commit(zoffset offset, size_t length) const {
698698
}
699699

700700
size_t ZPhysicalMemoryBacking::uncommit(zoffset offset, size_t length) const {
701-
log_trace(gc, heap)("Uncommitting memory: " SIZE_FORMAT "M-" SIZE_FORMAT "M (" SIZE_FORMAT "M)",
701+
log_trace(gc, heap)("Uncommitting memory: %zuM-%zuM (%zuM)",
702702
untype(offset) / M, untype(to_zoffset_end(offset, length)) / M, length / M);
703703

704704
const ZErrno err = fallocate(true /* punch_hole */, offset, length);

0 commit comments

Comments
 (0)
Please sign in to comment.