RFR: 8299973: Replace NULL with nullptr in share/utilities/ [v3]
David Holmes
dholmes at openjdk.org
Thu Jan 19 09:32:49 UTC 2023
On Wed, 18 Jan 2023 22:14:08 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
>> Johan Sjölen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fix incorrect copyrights, reverts change in file that was only comment
>
> src/hotspot/share/utilities/globalDefinitions.cpp line 162:
>
>> 160: static_assert((size_t)HeapWordSize >= sizeof(juint),
>> 161: "HeapWord should be at least as large as juint");
>> 162: static_assert(sizeof(nullptr) == sizeof(char*), "nullptr must be same size as pointer");
>
> Adding in another static_assert here so that both cases are represented.
Not sure this makes any sense for `nullptr`.
-------------
PR: https://git.openjdk.org/jdk/pull/12015
More information about the hotspot-dev
mailing list