8301072: Replace NULL with nullptr in share/oops/

Reviewed-by: stefank, coleenp, dholmes
This commit is contained in:
Johan Sjölen 2023-02-10 09:57:59 +00:00
parent 1c7b09bc23
commit c8ace482ed
56 changed files with 1080 additions and 1080 deletions

View file

@ -145,7 +145,7 @@ class ConstantPoolCacheEntry {
void set_bytecode_2(Bytecodes::Code code);
void set_f1(Metadata* f1) {
Metadata* existing_f1 = _f1; // read once
assert(existing_f1 == NULL || existing_f1 == f1, "illegal field change");
assert(existing_f1 == nullptr || existing_f1 == f1, "illegal field change");
_f1 = f1;
}
void release_set_f1(Metadata* f1);
@ -226,7 +226,7 @@ class ConstantPoolCacheEntry {
private:
void set_direct_or_vtable_call(
Bytecodes::Code invoke_code, // the bytecode used for invoking the method
const methodHandle& method, // the method/prototype if any (NULL, otherwise)
const methodHandle& method, // the method/prototype if any (null, otherwise)
int vtable_index, // the vtable index if any, else negative
bool sender_is_interface
);
@ -442,7 +442,7 @@ class ConstantPoolCache: public MetaspaceObj {
void metaspace_pointers_do(MetaspaceClosure* it);
MetaspaceObj::Type type() const { return ConstantPoolCacheType; }
oop archived_references() NOT_CDS_JAVA_HEAP_RETURN_(NULL);
oop archived_references() NOT_CDS_JAVA_HEAP_RETURN_(nullptr);
void set_archived_references(int root_index) NOT_CDS_JAVA_HEAP_RETURN;
void clear_archived_references() NOT_CDS_JAVA_HEAP_RETURN;