RFR: 8255082: HotSpot Style Guide should permit noexcept

Kim Barrett kbarrett at openjdk.org
Mon Jun 2 08:24:01 UTC 2025


On Mon, 2 Jun 2025 05:28:17 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this change to permit the use of `noexcept` under certain
> circumstances in HotSpot code.
> 
> http://wg21.link/n3050
> 
> Testing:
> 
> JDK-8316930 (HotSpot should use noexcept instead of throw()) showed what the
> conversion would look like. It will need to be brought up to current mainline,
> possibly with modifications.
> 
> This is a modification of the Style Guide, so rough consensus among the
> HotSpot Group members is required to make this change. Only Group members
> should vote for approval (via the github PR), though reasoned objections or
> comments from anyone will be considered. A decision on this proposal will not
> be made before Friday 16-June-2025 at 12h00 UTC.
> 
> Since we're piggybacking on github PRs here, please use the PR review process
> to approve (click on Review Changes > Approve), rather than sending a "vote:
> yes" email reply that would be normal for a CFV.

I forgot to mention that of course the current code is out of conformance with this, since we're currently using
`throw()` to declare allocation functions as being nothrow. Once this style guide is approved, we (probably meaning I)
will need to update the code accordingly.  Probably not as a big query-replace either, as I've already found one mistake.

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

PR Comment: https://git.openjdk.org/jdk/pull/25574#issuecomment-2929385129


More information about the hotspot-dev mailing list