Skip to content

Commit 803680f

Browse files
committedApr 18, 2023
8306289: 32-bit build failures after JDK-8303422
Reviewed-by: jiefu, zgu
1 parent e97fe08 commit 803680f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/hotspot/share/cds/filemap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ bool FileMapInfo::init_from_file(int fd) {
14261426

14271427
void FileMapInfo::seek_to_position(size_t pos) {
14281428
if (os::lseek(_fd, (long)pos, SEEK_SET) < 0) {
1429-
log_error(cds)("Unable to seek to position %ld", pos);
1429+
log_error(cds)("Unable to seek to position " SIZE_FORMAT, pos);
14301430
MetaspaceShared::unrecoverable_loading_error();
14311431
}
14321432
}

‎src/hotspot/share/cds/metaspaceShared.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ void MetaspaceShared::initialize_for_static_dump() {
267267
size_t symbol_rs_size = LP64_ONLY(3 * G) NOT_LP64(128 * M);
268268
_symbol_rs = ReservedSpace(symbol_rs_size);
269269
if (!_symbol_rs.is_reserved()) {
270-
log_error(cds)("Unable to reserve memory for symbols: %ld bytes.", symbol_rs_size);
270+
log_error(cds)("Unable to reserve memory for symbols: " SIZE_FORMAT " bytes.", symbol_rs_size);
271271
MetaspaceShared::unrecoverable_writing_error();
272272
}
273273
_symbol_region.init(&_symbol_rs, &_symbol_vs);

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Apr 18, 2023

@openjdk-notifier[bot]
Please sign in to comment.