8336085: Fix simple -Wzero-as-null-pointer-constant warnings in CDS code

Reviewed-by: dholmes, jwaters
This commit is contained in:
Kim Barrett 2024-07-11 08:28:25 +00:00
parent 2928753bd9
commit 62cbf70346
2 changed files with 5 additions and 5 deletions

View File

@ -1292,9 +1292,9 @@ public:
address header = address(mapinfo->header());
address header_end = header + mapinfo->header()->header_size();
log_region("header", header, header_end, 0);
log_region("header", header, header_end, nullptr);
log_header(mapinfo);
log_as_hex(header, header_end, 0);
log_as_hex(header, header_end, nullptr);
DumpRegion* rw_region = &builder->_rw_region;
DumpRegion* ro_region = &builder->_ro_region;
@ -1303,8 +1303,8 @@ public:
log_metaspace_region("ro region", ro_region, &builder->_ro_src_objs);
address bitmap_end = address(bitmap + bitmap_size_in_bytes);
log_region("bitmap", address(bitmap), bitmap_end, 0);
log_as_hex((address)bitmap, bitmap_end, 0);
log_region("bitmap", address(bitmap), bitmap_end, nullptr);
log_as_hex((address)bitmap, bitmap_end, nullptr);
#if INCLUDE_CDS_JAVA_HEAP
if (heap_info->is_used()) {

View File

@ -298,7 +298,7 @@ public:
void set_requested_base(char* b) {
_requested_base_address = b;
_mapped_base_address = 0;
_mapped_base_address = nullptr;
}
SharedPathTable shared_path_table() const {