RFR: 8255082: HotSpot Style Guide should permit noexcept
Julian Waters
jwaters at openjdk.org
Thu Jun 5 05:05:51 UTC 2025
On Thu, 5 Jun 2025 03:42:46 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> PR 15910 seems a mess; let's just leave that alone.
I understand, I'll leave it be in that case.
> In other words, modify this style guide change to allow (or even prefer) `throw()` rather than `noexcept`?
Not really allow or prefer throw() to noexcept in the style guide, more just leave the existing uses of throw() alone once this style guide change goes in. Kind of like how alignas and C++11 attributes are now permitted within HotSpot, but the old usages of __attribute__ or __declspec, and ATTRIBUTE_ALIGNED weren't all changed to use [[]] attributes or alignas because that would be rather troublesome. Then again, there are less throw() currently in the code than there are attributes or ATTRIBUTE_ALIGNED, so maybe this isn't as big of an issue as I think it is.
> I'm just trying to prepare us for C++17 at this point. :)
C++17 has been long overdue by this point in my eyes, hopefully you'll be more successful than I was at switching the JDK to it :)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25574#issuecomment-2942757329
More information about the hotspot-dev
mailing list