11/*
2- * Copyright (c) 1999, 2024 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1999, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * Copyright (c) 2012, 2024 SAP SE. All rights reserved.
44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55 *
@@ -632,7 +632,7 @@ static void *thread_native_entry(Thread *thread) {
632632 if (lt.is_enabled ()) {
633633 address low_address = thread->stack_end ();
634634 address high_address = thread->stack_base ();
635- lt.print (" Thread is alive (tid: " UINTX_FORMAT " , kernel thread id: " UINTX_FORMAT
635+ lt.print (" Thread is alive (tid: %zu , kernel thread id: %zu "
636636 " , stack [" PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT " k using %luk pages))." ,
637637 os::current_thread_id (), (uintx) kernel_thread_id, p2i (low_address), p2i (high_address),
638638 (high_address - low_address) / K, os::Aix::query_pagesize (low_address) / K);
@@ -682,7 +682,7 @@ static void *thread_native_entry(Thread *thread) {
682682 // Prevent dereferencing it from here on out.
683683 thread = nullptr ;
684684
685- log_info (os, thread)(" Thread finished (tid: " UINTX_FORMAT " , kernel thread id: " UINTX_FORMAT " )." ,
685+ log_info (os, thread)(" Thread finished (tid: %zu , kernel thread id: %zu )." ,
686686 os::current_thread_id (), (uintx) kernel_thread_id);
687687
688688 return 0 ;
@@ -762,7 +762,7 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
762762
763763 if (ret == 0 ) {
764764 char buf[64 ];
765- log_info (os, thread)(" Thread \" %s\" started (pthread id: " UINTX_FORMAT " , attributes: %s). " ,
765+ log_info (os, thread)(" Thread \" %s\" started (pthread id: %zu , attributes: %s). " ,
766766 thread->name (), (uintx) tid, os::Posix::describe_pthread_attr (buf, sizeof (buf), &attr));
767767 } else {
768768 char buf[64 ];
@@ -840,7 +840,7 @@ bool os::create_attached_thread(JavaThread* thread) {
840840 // and save the caller's signal mask
841841 PosixSignals::hotspot_sigmask (thread);
842842
843- log_info (os, thread)(" Thread attached (tid: " UINTX_FORMAT " , kernel thread id: " UINTX_FORMAT
843+ log_info (os, thread)(" Thread attached (tid: %zu , kernel thread id: %zu "
844844 " , stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT " K) )." ,
845845 os::current_thread_id (), (uintx) kernel_thread_id,
846846 p2i (thread->stack_base ()), p2i (thread->stack_end ()), thread->stack_size () / K);
@@ -1380,7 +1380,7 @@ struct vmembk_t {
13801380 }
13811381
13821382 void print_on (outputStream* os) const {
1383- os->print (" [" PTR_FORMAT " - " PTR_FORMAT " ] (" UINTX_FORMAT
1383+ os->print (" [" PTR_FORMAT " - " PTR_FORMAT " ] (%zu "
13841384 " bytes, %ld %s pages), %s" ,
13851385 p2i (addr), p2i (addr) + size - 1 , size, size / pagesize, describe_pagesize (pagesize),
13861386 (type == VMEM_SHMATED ? " shmat" : " mmap" )
@@ -1457,7 +1457,7 @@ static void vmembk_print_on(outputStream* os) {
14571457// If <requested_addr> is null, function will attach the memory anywhere.
14581458static char * reserve_shmated_memory (size_t bytes, char * requested_addr) {
14591459
1460- trcVerbose (" reserve_shmated_memory " UINTX_FORMAT " bytes, wishaddress "
1460+ trcVerbose (" reserve_shmated_memory %zu bytes, wishaddress "
14611461 PTR_FORMAT " ..." , bytes, p2i (requested_addr));
14621462
14631463 // We must prevent anyone from attaching too close to the
@@ -1478,7 +1478,7 @@ static char* reserve_shmated_memory (size_t bytes, char* requested_addr) {
14781478 int shmid = shmget (IPC_PRIVATE, size, IPC_CREAT | S_IRUSR | S_IWUSR);
14791479 if (shmid == -1 ) {
14801480 ErrnoPreserver ep;
1481- log_trace (os, map)(" shmget(.., " UINTX_FORMAT " , ..) failed (errno=%s)." ,
1481+ log_trace (os, map)(" shmget(.., %zu , ..) failed (errno=%s)." ,
14821482 size, os::strerror (ep.saved_errno ()));
14831483 return nullptr ;
14841484 }
@@ -1494,7 +1494,7 @@ static char* reserve_shmated_memory (size_t bytes, char* requested_addr) {
14941494 shmbuf.shm_pagesize = 64 *K;
14951495 if (shmctl (shmid, SHM_PAGESIZE, &shmbuf) != 0 ) {
14961496 assert (false ,
1497- " Failed to set page size (need " UINTX_FORMAT
1497+ " Failed to set page size (need %zu "
14981498 " 64K pages) - shmctl failed. (errno=%s)." ,
14991499 size / (64 * K), os::strerror (os::get_last_error ()));
15001500 }
@@ -1537,7 +1537,7 @@ static char* reserve_shmated_memory (size_t bytes, char* requested_addr) {
15371537
15381538 if (addr) {
15391539 log_trace (os, map)(" shm-allocated succeeded: " RANGEFMT
1540- " (" UINTX_FORMAT " %s pages)" ,
1540+ " (%zu %s pages)" ,
15411541 RANGEFMTARGS (addr, size),
15421542 size / real_pagesize,
15431543 describe_pagesize (real_pagesize));
@@ -1546,7 +1546,7 @@ static char* reserve_shmated_memory (size_t bytes, char* requested_addr) {
15461546 log_trace (os, map)(" shm-allocate failed: " RANGEFMT,
15471547 RANGEFMTARGS (requested_addr, size));
15481548 } else {
1549- log_trace (os, map)(" failed to shm-allocate " UINTX_FORMAT
1549+ log_trace (os, map)(" failed to shm-allocate %zu "
15501550 " bytes at any address." ,
15511551 size);
15521552 }
@@ -1588,7 +1588,7 @@ static bool uncommit_shmated_memory(char* addr, size_t size) {
15881588
15891589 if (rc != 0 ) {
15901590 ErrnoPreserver ep;
1591- log_warning (os)(" disclaim64(" PTR_FORMAT " , " UINTX_FORMAT " ) failed, %s\n " , p2i (addr), size, os::strerror (ep.saved_errno ()));
1591+ log_warning (os)(" disclaim64(" PTR_FORMAT " , %zu ) failed, %s\n " , p2i (addr), size, os::strerror (ep.saved_errno ()));
15921592 return false ;
15931593 }
15941594 return true ;
@@ -1600,7 +1600,7 @@ static bool uncommit_shmated_memory(char* addr, size_t size) {
16001600// If <requested_addr> is given, an attempt is made to attach at the given address.
16011601// Failing that, memory is allocated at any address.
16021602static char * reserve_mmaped_memory (size_t bytes, char * requested_addr) {
1603- trcVerbose (" reserve_mmaped_memory " UINTX_FORMAT " bytes, wishaddress " PTR_FORMAT " ..." ,
1603+ trcVerbose (" reserve_mmaped_memory %zu bytes, wishaddress " PTR_FORMAT " ..." ,
16041604 bytes, p2i (requested_addr));
16051605
16061606 if (requested_addr && !is_aligned_to (requested_addr, os::vm_page_size ()) != 0 ) {
@@ -1690,7 +1690,7 @@ static char* reserve_mmaped_memory(size_t bytes, char* requested_addr) {
16901690 }
16911691 addr = addr_aligned;
16921692
1693- trcVerbose (" mmap-allocated " PTR_FORMAT " .. " PTR_FORMAT " (" UINTX_FORMAT " bytes)" ,
1693+ trcVerbose (" mmap-allocated " PTR_FORMAT " .. " PTR_FORMAT " (%zu bytes)" ,
16941694 p2i (addr), p2i (addr + bytes), bytes);
16951695
16961696 // bookkeeping
@@ -2784,7 +2784,7 @@ bool os::start_debugging(char *buf, int buflen) {
27842784 jio_snprintf (p, buflen -len,
27852785 " \n\n "
27862786 " Do you want to debug the problem?\n\n "
2787- " To debug, run 'dbx -a %d'; then switch to thread tid " INTX_FORMAT " , k-tid " INTX_FORMAT " \n "
2787+ " To debug, run 'dbx -a %d'; then switch to thread tid %zd , k-tid %zd \n "
27882788 " Enter 'yes' to launch dbx automatically (PATH must include dbx)\n "
27892789 " Otherwise, press RETURN to abort..." ,
27902790 os::current_process_id (),
0 commit comments