RFR: 8324678: Replace NULL with nullptr in HotSpot gtests [v2]
Kim Barrett
kbarrett at openjdk.org
Mon Jan 29 12:49:33 UTC 2024
On Mon, 29 Jan 2024 05:16:12 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Part of the cleanup with using `nullptr` is that we should never need to cast `nullptr` to another pointer type. I flagged a few cases below but certainly not all.
I think this may eventually be true, but I don't think it is currently true. I think we will need to add overloads for
std::nullptr_t in some places in order to remove some casts. This is particularly true for templates, and I think all
of the places you mentioned are of this kind.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17577#issuecomment-1914626715
More information about the hotspot-dev
mailing list