RFR: 8299973: Replace NULL with nullptr in share/utilities/
Johan Sjölen
jsjolen at openjdk.org
Wed Jan 18 22:33:26 UTC 2023
On Mon, 16 Jan 2023 19:22:43 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
> Do the conversion in the share/utilities sub-directory and all of its files.
Opening this up for review now. Please look at the manual fixes commits for were I made my own decisions (had to make more than I have had to so far).
Running tests right now.
src/hotspot/share/utilities/debug.cpp line 425:
> 423: CodeBlob* cb = CodeCache::find_blob((address)p);
> 424: if (cb == nullptr) {
> 425: tty->print_cr("nullptr");
Changes log, OK?
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.
-------------
PR: https://git.openjdk.org/jdk/pull/12015
More information about the hotspot-dev
mailing list