RFR: 8337418: Fix -Wzero-as-null-pointer-constant warnings in prims code
Kim Barrett
kbarrett at openjdk.org
Wed Jul 31 02:07:42 UTC 2024
On Tue, 30 Jul 2024 10:19:59 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> All right, this looks fine. (I am somewhat allergic to `{}` syntax, but it is what it is.)
The hoops one had to go through to get guaranteed value-initialization before we had brace initialization are really
not pretty. See
https://www.boost.org/doc/libs/1_85_0/libs/utility/doc/html/utility/utilities/value_init.html
and its associated implementation.
It might help if we were to commit to using direct brace initialization whenever appropriate, but that hasn't happened.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20385#issuecomment-2259500102
More information about the hotspot-dev
mailing list