Skip to content

Commit 59bf3d7

Browse files
author
Kim Barrett
committed
8336080: Fix -Wzero-as-null-pointer-constant warnings in ClassLoaderStats ctor
Reviewed-by: dholmes, iwalulya
1 parent 88eff4c commit 59bf3d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hotspot/share/classfile/classLoaderStats.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -82,9 +82,9 @@ class ClassLoaderStats : public ResourceObj {
8282
uintx _hidden_classes_count;
8383

8484
ClassLoaderStats() :
85-
_cld(0),
86-
_class_loader(0),
87-
_parent(0),
85+
_cld(nullptr),
86+
_class_loader(),
87+
_parent(),
8888
_chunk_sz(0),
8989
_block_sz(0),
9090
_classes_count(0),

0 commit comments

Comments
 (0)