@@ -450,7 +450,7 @@ static void query_multipage_support() {
450
450
if (p != (void *) -1 ) {
451
451
const size_t real_pagesize = os::Aix::query_pagesize (p);
452
452
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);
454
454
} else {
455
455
can_use = true ;
456
456
}
@@ -632,7 +632,7 @@ static void *thread_native_entry(Thread *thread) {
632
632
address low_address = thread->stack_end ();
633
633
address high_address = thread->stack_base ();
634
634
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))." ,
636
636
os::current_thread_id (), (uintx) kernel_thread_id, p2i (low_address), p2i (high_address),
637
637
(high_address - low_address) / K, os::Aix::query_pagesize (low_address) / K);
638
638
}
@@ -733,7 +733,7 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
733
733
// guard pages might not fit on the tiny stack created.
734
734
int ret = pthread_attr_setstacksize (&attr, stack_size);
735
735
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 " ,
737
737
(thr_type == compiler_thread) ? " compiler " : ((thr_type == java_thread) ? " " : " VM " ),
738
738
stack_size / K);
739
739
thread->set_osthread (nullptr );
@@ -769,7 +769,7 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
769
769
thread->name (), ret, os::errno_name (ret), os::Posix::describe_pthread_attr (buf, sizeof (buf), &attr));
770
770
// Log some OS information which might explain why creating the thread failed.
771
771
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);
773
773
LogStream st (Log (os, thread)::info ());
774
774
os::Posix::print_rlimit_info (&st);
775
775
os::print_memory_info (&st);
@@ -840,7 +840,7 @@ bool os::create_attached_thread(JavaThread* thread) {
840
840
PosixSignals::hotspot_sigmask (thread);
841
841
842
842
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 ) )." ,
844
844
os::current_thread_id (), (uintx) kernel_thread_id,
845
845
p2i (thread->stack_base ()), p2i (thread->stack_end ()), thread->stack_size () / K);
846
846
@@ -1194,21 +1194,21 @@ void os::print_memory_info(outputStream* st) {
1194
1194
1195
1195
os::Aix::meminfo_t mi;
1196
1196
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 );
1201
1201
}
1202
1202
st->cr ();
1203
1203
1204
1204
// Print program break.
1205
1205
st->print_cr (" Program break at VM startup: " PTR_FORMAT " ." , p2i (g_brk_at_startup));
1206
1206
address brk_now = (address)::sbrk (0 );
1207
1207
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 )." ,
1209
1209
p2i (brk_now), (size_t )((brk_now - g_brk_at_startup) / K));
1210
1210
}
1211
- st->print_cr (" MaxExpectedDataSegmentSize : " SIZE_FORMAT " k ." , MaxExpectedDataSegmentSize / K);
1211
+ st->print_cr (" MaxExpectedDataSegmentSize : %zuk ." , MaxExpectedDataSegmentSize / K);
1212
1212
st->cr ();
1213
1213
1214
1214
// Print segments allocated with os::reserve_memory.
@@ -1533,7 +1533,7 @@ static char* reserve_shmated_memory (size_t bytes, char* requested_addr) {
1533
1533
// work (see above), the system may have given us something other then 4K (LDR_CNTRL).
1534
1534
const size_t real_pagesize = os::Aix::query_pagesize (addr);
1535
1535
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 " ,
1537
1537
real_pagesize);
1538
1538
}
1539
1539
@@ -1759,9 +1759,8 @@ static bool uncommit_mmaped_memory(char* addr, size_t size) {
1759
1759
#ifdef PRODUCT
1760
1760
static void warn_fail_commit_memory (char * addr, size_t size, bool exec,
1761
1761
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);
1765
1764
}
1766
1765
#endif
1767
1766
@@ -1778,10 +1777,10 @@ void os::pd_commit_memory_or_exit(char* addr, size_t size, bool exec,
1778
1777
bool os::pd_commit_memory (char * addr, size_t size, bool exec) {
1779
1778
1780
1779
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 )" ,
1782
1781
p2i (addr), os::vm_page_size ());
1783
1782
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 )" ,
1785
1784
size, os::vm_page_size ());
1786
1785
1787
1786
vmembk_t * const vmi = vmembk_find (addr);
@@ -1813,10 +1812,10 @@ void os::pd_commit_memory_or_exit(char* addr, size_t size,
1813
1812
1814
1813
bool os::pd_uncommit_memory (char * addr, size_t size, bool exec) {
1815
1814
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 )" ,
1817
1816
p2i (addr), os::vm_page_size ());
1818
1817
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 )" ,
1820
1819
size, os::vm_page_size ());
1821
1820
1822
1821
// Dynamically do different things for mmap/shmat.
0 commit comments