mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +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
|
||||
|
@ -74,10 +74,10 @@ public:
|
|||
oop* _entries[_storage_entries];
|
||||
};
|
||||
|
||||
WorkerThreads* OopStorageParIterPerf::_workers = NULL;
|
||||
WorkerThreads* OopStorageParIterPerf::_workers = nullptr;
|
||||
|
||||
WorkerThreads* OopStorageParIterPerf::workers() const {
|
||||
if (_workers == NULL) {
|
||||
if (_workers == nullptr) {
|
||||
WorkerThreads* wg = new WorkerThreads("OopStorageParIterPerf workers", _num_workers);
|
||||
wg->initialize_workers();
|
||||
wg->set_active_workers(_num_workers);
|
||||
|
@ -126,7 +126,7 @@ class OopStorageParIterPerf::Task : public WorkerTask {
|
|||
public:
|
||||
Task(OopStorage* storage, OopClosure* closure, uint nthreads) :
|
||||
WorkerTask("OopStorageParIterPerf::Task"),
|
||||
_worker_times(NULL),
|
||||
_worker_times(nullptr),
|
||||
_state(storage, nthreads),
|
||||
_closure(closure)
|
||||
{
|
||||
|
@ -152,7 +152,7 @@ public:
|
|||
|
||||
class OopStorageParIterPerf::Closure : public OopClosure {
|
||||
public:
|
||||
virtual void do_oop(oop* p) { guarantee(*p == NULL, "expected NULL"); }
|
||||
virtual void do_oop(oop* p) { guarantee(*p == nullptr, "expected null"); }
|
||||
virtual void do_oop(narrowOop* p) { ShouldNotReachHere(); }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue