1
1
/*
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.
3
3
* Copyright (c) 2012, 2024 SAP SE. All rights reserved.
4
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
5
*
@@ -632,7 +632,7 @@ static void *thread_native_entry(Thread *thread) {
632
632
if (lt.is_enabled ()) {
633
633
address low_address = thread->stack_end ();
634
634
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 "
636
636
" , stack [" PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT " k using %luk pages))." ,
637
637
os::current_thread_id (), (uintx) kernel_thread_id, p2i (low_address), p2i (high_address),
638
638
(high_address - low_address) / K, os::Aix::query_pagesize (low_address) / K);
@@ -682,7 +682,7 @@ static void *thread_native_entry(Thread *thread) {
682
682
// Prevent dereferencing it from here on out.
683
683
thread = nullptr ;
684
684
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 )." ,
686
686
os::current_thread_id (), (uintx) kernel_thread_id);
687
687
688
688
return 0 ;
@@ -762,7 +762,7 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
762
762
763
763
if (ret == 0 ) {
764
764
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). " ,
766
766
thread->name (), (uintx) tid, os::Posix::describe_pthread_attr (buf, sizeof (buf), &attr));
767
767
} else {
768
768
char buf[64 ];
@@ -840,7 +840,7 @@ bool os::create_attached_thread(JavaThread* thread) {
840
840
// and save the caller's signal mask
841
841
PosixSignals::hotspot_sigmask (thread);
842
842
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 "
844
844
" , stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT " K) )." ,
845
845
os::current_thread_id (), (uintx) kernel_thread_id,
846
846
p2i (thread->stack_base ()), p2i (thread->stack_end ()), thread->stack_size () / K);
@@ -1380,7 +1380,7 @@ struct vmembk_t {
1380
1380
}
1381
1381
1382
1382
void print_on (outputStream* os) const {
1383
- os->print (" [" PTR_FORMAT " - " PTR_FORMAT " ] (" UINTX_FORMAT
1383
+ os->print (" [" PTR_FORMAT " - " PTR_FORMAT " ] (%zu "
1384
1384
" bytes, %ld %s pages), %s" ,
1385
1385
p2i (addr), p2i (addr) + size - 1 , size, size / pagesize, describe_pagesize (pagesize),
1386
1386
(type == VMEM_SHMATED ? " shmat" : " mmap" )
@@ -1457,7 +1457,7 @@ static void vmembk_print_on(outputStream* os) {
1457
1457
// If <requested_addr> is null, function will attach the memory anywhere.
1458
1458
static char * reserve_shmated_memory (size_t bytes, char * requested_addr) {
1459
1459
1460
- trcVerbose (" reserve_shmated_memory " UINTX_FORMAT " bytes, wishaddress "
1460
+ trcVerbose (" reserve_shmated_memory %zu bytes, wishaddress "
1461
1461
PTR_FORMAT " ..." , bytes, p2i (requested_addr));
1462
1462
1463
1463
// 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) {
1478
1478
int shmid = shmget (IPC_PRIVATE, size, IPC_CREAT | S_IRUSR | S_IWUSR);
1479
1479
if (shmid == -1 ) {
1480
1480
ErrnoPreserver ep;
1481
- log_trace (os, map)(" shmget(.., " UINTX_FORMAT " , ..) failed (errno=%s)." ,
1481
+ log_trace (os, map)(" shmget(.., %zu , ..) failed (errno=%s)." ,
1482
1482
size, os::strerror (ep.saved_errno ()));
1483
1483
return nullptr ;
1484
1484
}
@@ -1494,7 +1494,7 @@ static char* reserve_shmated_memory (size_t bytes, char* requested_addr) {
1494
1494
shmbuf.shm_pagesize = 64 *K;
1495
1495
if (shmctl (shmid, SHM_PAGESIZE, &shmbuf) != 0 ) {
1496
1496
assert (false ,
1497
- " Failed to set page size (need " UINTX_FORMAT
1497
+ " Failed to set page size (need %zu "
1498
1498
" 64K pages) - shmctl failed. (errno=%s)." ,
1499
1499
size / (64 * K), os::strerror (os::get_last_error ()));
1500
1500
}
@@ -1537,7 +1537,7 @@ static char* reserve_shmated_memory (size_t bytes, char* requested_addr) {
1537
1537
1538
1538
if (addr) {
1539
1539
log_trace (os, map)(" shm-allocated succeeded: " RANGEFMT
1540
- " (" UINTX_FORMAT " %s pages)" ,
1540
+ " (%zu %s pages)" ,
1541
1541
RANGEFMTARGS (addr, size),
1542
1542
size / real_pagesize,
1543
1543
describe_pagesize (real_pagesize));
@@ -1546,7 +1546,7 @@ static char* reserve_shmated_memory (size_t bytes, char* requested_addr) {
1546
1546
log_trace (os, map)(" shm-allocate failed: " RANGEFMT,
1547
1547
RANGEFMTARGS (requested_addr, size));
1548
1548
} else {
1549
- log_trace (os, map)(" failed to shm-allocate " UINTX_FORMAT
1549
+ log_trace (os, map)(" failed to shm-allocate %zu "
1550
1550
" bytes at any address." ,
1551
1551
size);
1552
1552
}
@@ -1588,7 +1588,7 @@ static bool uncommit_shmated_memory(char* addr, size_t size) {
1588
1588
1589
1589
if (rc != 0 ) {
1590
1590
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 ()));
1592
1592
return false ;
1593
1593
}
1594
1594
return true ;
@@ -1600,7 +1600,7 @@ static bool uncommit_shmated_memory(char* addr, size_t size) {
1600
1600
// If <requested_addr> is given, an attempt is made to attach at the given address.
1601
1601
// Failing that, memory is allocated at any address.
1602
1602
static 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 " ..." ,
1604
1604
bytes, p2i (requested_addr));
1605
1605
1606
1606
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) {
1690
1690
}
1691
1691
addr = addr_aligned;
1692
1692
1693
- trcVerbose (" mmap-allocated " PTR_FORMAT " .. " PTR_FORMAT " (" UINTX_FORMAT " bytes)" ,
1693
+ trcVerbose (" mmap-allocated " PTR_FORMAT " .. " PTR_FORMAT " (%zu bytes)" ,
1694
1694
p2i (addr), p2i (addr + bytes), bytes);
1695
1695
1696
1696
// bookkeeping
@@ -2784,7 +2784,7 @@ bool os::start_debugging(char *buf, int buflen) {
2784
2784
jio_snprintf (p, buflen -len,
2785
2785
" \n\n "
2786
2786
" 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 "
2788
2788
" Enter 'yes' to launch dbx automatically (PATH must include dbx)\n "
2789
2789
" Otherwise, press RETURN to abort..." ,
2790
2790
os::current_process_id (),
0 commit comments