8300651: Replace NULL with nullptr in share/runtime/

Reviewed-by: rehn, dholmes
This commit is contained in:
Johan Sjölen 2023-01-25 10:30:02 +00:00
parent 3c61d5aa48
commit 71107f4648
112 changed files with 2058 additions and 2058 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2023, 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
@ -3076,7 +3076,7 @@ void VMStructs::init() {
static int recursiveFindType(VMTypeEntry* origtypes, const char* typeName, bool isRecurse) {
{
VMTypeEntry* types = origtypes;
while (types->typeName != NULL) {
while (types->typeName != nullptr) {
if (strcmp(typeName, types->typeName) == 0) {
// Found it
return 1;
@ -3097,13 +3097,13 @@ static int recursiveFindType(VMTypeEntry* origtypes, const char* typeName, bool
}
FREE_C_HEAP_ARRAY(char, s);
}
const char* start = NULL;
const char* start = nullptr;
if (strstr(typeName, "GrowableArray<") == typeName) {
start = typeName + strlen("GrowableArray<");
} else if (strstr(typeName, "Array<") == typeName) {
start = typeName + strlen("Array<");
}
if (start != NULL) {
if (start != nullptr) {
const char * end = strrchr(typeName, '>');
int len = end - start + 1;
char * s = NEW_C_HEAP_ARRAY(char, len, mtInternal);