mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8301068: Replace NULL with nullptr in share/jvmci/
Reviewed-by: kvn, never
This commit is contained in:
parent
419409bcf6
commit
90ec19efed
19 changed files with 403 additions and 403 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 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
|
||||
|
@ -140,7 +140,7 @@ void CompilerToVM::Data::initialize(JVMCI_TRAPS) {
|
|||
BarrierSet* bs = BarrierSet::barrier_set();
|
||||
if (bs->is_a(BarrierSet::CardTableBarrierSet)) {
|
||||
CardTable::CardValue* base = ci_card_table_address();
|
||||
assert(base != NULL, "unexpected byte_map_base");
|
||||
assert(base != nullptr, "unexpected byte_map_base");
|
||||
cardtable_start_address = base;
|
||||
cardtable_shift = CardTable::card_shift();
|
||||
} else {
|
||||
|
@ -152,7 +152,7 @@ void CompilerToVM::Data::initialize(JVMCI_TRAPS) {
|
|||
vm_page_size = os::vm_page_size();
|
||||
|
||||
#define SET_TRIGFUNC(name) \
|
||||
if (StubRoutines::name() != NULL) { \
|
||||
if (StubRoutines::name() != nullptr) { \
|
||||
name = StubRoutines::name(); \
|
||||
} else { \
|
||||
name = CAST_FROM_FN_PTR(address, SharedRuntime::name); \
|
||||
|
@ -263,7 +263,7 @@ JVMCIObjectArray CompilerToVM::initialize_intrinsics(JVMCI_TRAPS) {
|
|||
do { \
|
||||
jvalue p; p.j = (jlong) (value); \
|
||||
JVMCIObject* e = longs.get(p.j); \
|
||||
if (e == NULL) { \
|
||||
if (e == nullptr) { \
|
||||
JVMCIObject h = JVMCIENV->create_box(T_LONG, &p, JVMCI_CHECK_NULL); \
|
||||
longs.put(p.j, h); \
|
||||
name = h; \
|
||||
|
@ -275,9 +275,9 @@ JVMCIObjectArray CompilerToVM::initialize_intrinsics(JVMCI_TRAPS) {
|
|||
#define CSTRING_TO_JSTRING(name, value) \
|
||||
JVMCIObject name; \
|
||||
do { \
|
||||
if (value != NULL) { \
|
||||
if (value != nullptr) { \
|
||||
JVMCIObject* e = strings.get(value); \
|
||||
if (e == NULL) { \
|
||||
if (e == nullptr) { \
|
||||
JVMCIObject h = JVMCIENV->create_string(value, JVMCI_CHECK_NULL); \
|
||||
strings.put(value, h); \
|
||||
name = h; \
|
||||
|
@ -314,7 +314,7 @@ jobjectArray readConfiguration0(JNIEnv *env, JVMCI_TRAPS) {
|
|||
CSTRING_TO_JSTRING(name, name_buf);
|
||||
CSTRING_TO_JSTRING(type, vmField.typeString);
|
||||
JVMCIObject box;
|
||||
if (vmField.isStatic && vmField.typeString != NULL) {
|
||||
if (vmField.isStatic && vmField.typeString != nullptr) {
|
||||
if (strcmp(vmField.typeString, "bool") == 0) {
|
||||
BOXED_BOOLEAN(box, *(jbyte*) vmField.address);
|
||||
assert(box.is_non_null(), "must have a box");
|
||||
|
@ -381,7 +381,7 @@ jobjectArray readConfiguration0(JNIEnv *env, JVMCI_TRAPS) {
|
|||
#ifdef ASSERT
|
||||
#define CHECK_FLAG(type, name) { \
|
||||
const JVMFlag* flag = JVMFlag::find_declared_flag(#name); \
|
||||
assert(flag != NULL, "No such flag named " #name); \
|
||||
assert(flag != nullptr, "No such flag named " #name); \
|
||||
assert(flag->is_##type(), "JVMFlag " #name " is not of type " #type); \
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue