RFR: JDK-8301074: Replace NULL with nullptr in share/opto/ [v5]

Vladimir Kozlov kvn at openjdk.org
Wed Mar 8 18:56:30 UTC 2023


On Wed, 8 Mar 2023 18:35:36 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

>> src/hotspot/share/opto/memnode.cpp line 271:
>> 
>>> 269:       st->print("alias_idx==%d, adr_check==", alias_idx);
>>> 270:       if( adr_check == nullptr ) {
>>> 271:         st->print("null");
>> 
>> Where are these strings printed? Is this a user detectable change?
>
> The tty, so yes. Previous changes to logging have been accepted

This code print additional information on `tty` before we fail the assert at line 277. It helps us with debugging.
Note, the code is under (!consistent) check so it prints this only when something failed.

-------------

PR: https://git.openjdk.org/jdk/pull/12187


More information about the hotspot-compiler-dev mailing list