<div dir="ltr">how to unsubscribe? Please help!<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 16, 2024 at 2:56 PM Kim Barrett <<a href="mailto:kbarrett@openjdk.org">kbarrett@openjdk.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 10 Jul 2024 12:15:23 GMT, Kim Barrett <<a href="mailto:kbarrett@openjdk.org" target="_blank">kbarrett@openjdk.org</a>> wrote:<br>
<br>
> Please review this change to member initializers in the ClassLoaderStats<br>
> constructor.<br>
> <br>
> The initial value for members of pointer type are changed from 0 to nullptr.<br>
> <br>
> The initializers for members of oop type are changed from a value of 0 to<br>
> using value initialization. In debug builds this calls the provided default<br>
> ctor for the (debug-only) oop class, which initialized the underlying value to<br>
> nullptr. In release builds (where oop is a type alias for oopDesc*) this is a<br>
> zero initialization of the pointer-typed member, but without triggering<br>
> -Wzero-as-null-pointer-constant warnings.<br>
> <br>
> Testing: mach5 tier1<br>
<br>
This pull request has now been integrated.<br>
<br>
Changeset: 59bf3d77<br>
Author: Kim Barrett <<a href="mailto:kbarrett@openjdk.org" target="_blank">kbarrett@openjdk.org</a>><br>
URL: <a href="https://git.openjdk.org/jdk/commit/59bf3d77aa96dfdc199f5a6893c76c8a379e9fba" rel="noreferrer" target="_blank">https://git.openjdk.org/jdk/commit/59bf3d77aa96dfdc199f5a6893c76c8a379e9fba</a><br>
Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod<br>
<br>
8336080: Fix -Wzero-as-null-pointer-constant warnings in ClassLoaderStats ctor<br>
<br>
Reviewed-by: dholmes, iwalulya<br>
<br>
-------------<br>
<br>
PR: <a href="https://git.openjdk.org/jdk/pull/20109" rel="noreferrer" target="_blank">https://git.openjdk.org/jdk/pull/20109</a><br>
</blockquote></div>