8324678: Replace NULL with nullptr in HotSpot gtests

Reviewed-by: kbarrett, dholmes, jwaters
This commit is contained in:
Coleen Phillimore 2024-01-29 17:12:13 +00:00
parent a6bdee48f3
commit c1281e6b45
74 changed files with 580 additions and 580 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2023, 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
@ -62,7 +62,7 @@ TEST_VM(BufferNodeAllocatorTest, test) {
for (size_t i = 0; i < node_count; ++i) {
ASSERT_EQ(0u, allocator.free_count());
nodes[i] = allocator.allocate();
ASSERT_EQ((BufferNode*)NULL, nodes[i]->next());
ASSERT_EQ(nullptr, nodes[i]->next());
}
// Release the nodes, adding them to the allocator's free list.
@ -102,7 +102,7 @@ public:
}
void push(BufferNode* node) {
assert(node != NULL, "precondition");
assert(node != nullptr, "precondition");
_completed_list.push(*node);
}
@ -169,7 +169,7 @@ public:
bool shutdown_requested = false;
while (true) {
BufferNode* node = _cbl->pop();
if (node != NULL) {
if (node != nullptr) {
_allocator->release(node);
} else if (shutdown_requested) {
return;