RFR: 8302189: Mark assertion failures noreturn [v2]

Kim Barrett kbarrett at openjdk.org
Tue Mar 7 06:02:14 UTC 2023


The message from this sender included one or more files
which could not be scanned for virus detection; do not
open these files unless you are certain of the sender's intent.

----------------------------------------------------------------------
On Tue, 7 Mar 2023 01:25:47 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> I believe David is asking about why these particular member names were changed
>
> No I'm comparing the syntax used elsewhere:
> 
> DebuggingContext debugging{};
> 
> with that used here:
> 
> DebuggingContext debugging;
> 
> why the braces in most cases but not here?

"syntax used elsewhere" are declarations of local variables initialized with _value initialization_ (which is _default initialization_ for this type).  "that used here" is a member variable declaration in the Command class, where the initialization occurs elsewhere (in the constructor of the Command class [*]).  They are entirely different syntactic entities.  Does that help?  Or am I still not understanding your question?

[*] With C++11, data members can have default initializers, but that's not an approved feature for HotSpot.

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

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



More information about the build-dev mailing list