mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8324678: Replace NULL with nullptr in HotSpot gtests
Reviewed-by: kbarrett, dholmes, jwaters
This commit is contained in:
parent
a6bdee48f3
commit
c1281e6b45
74 changed files with 580 additions and 580 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -55,13 +55,13 @@ namespace {
|
|||
|
||||
#define check_empty(rmr) \
|
||||
do { \
|
||||
check_inner((rmr), NULL, 0, __FILE__, __LINE__); \
|
||||
check_inner((rmr), nullptr, 0, __FILE__, __LINE__); \
|
||||
} while (false)
|
||||
|
||||
static void diagnostic_print(ReservedMemoryRegion* rmr) {
|
||||
CommittedRegionIterator iter = rmr->iterate_committed_regions();
|
||||
LOG("In reserved region " PTR_FORMAT ", size " SIZE_FORMAT_HEX ":", p2i(rmr->base()), rmr->size());
|
||||
for (const CommittedMemoryRegion* region = iter.next(); region != NULL; region = iter.next()) {
|
||||
for (const CommittedMemoryRegion* region = iter.next(); region != nullptr; region = iter.next()) {
|
||||
LOG(" committed region: " PTR_FORMAT ", size " SIZE_FORMAT_HEX, p2i(region->base()), region->size());
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ static void check_inner(ReservedMemoryRegion* rmr, R* regions, size_t regions_si
|
|||
|
||||
#define WHERE " from " << file << ":" << line
|
||||
|
||||
for (const CommittedMemoryRegion* region = iter.next(); region != NULL; region = iter.next()) {
|
||||
for (const CommittedMemoryRegion* region = iter.next(); region != nullptr; region = iter.next()) {
|
||||
EXPECT_LT(i, regions_size) << WHERE;
|
||||
EXPECT_EQ(region->base(), regions[i]._addr) << WHERE;
|
||||
EXPECT_EQ(region->size(), regions[i]._size) << WHERE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue