RFR: 8316930: HotSpot should use noexcept instead of throw() [v4]
Kim Barrett
kbarrett at openjdk.org
Wed Jul 24 20:57:37 UTC 2024
On Wed, 24 Jul 2024 20:53:04 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
>> Or do I have that backwards ... the key point of `no_except` is that callers of these method must check for `nullptr`, but with EXIT_OOM that is not the case - and we don't want it to appear that the allocation can actually fail and we continue execution!
>
> It looks like there are a number of `operator new`s that have nothrow exception specs but shouldn't.
> CompilationResourceObj in the immediately preceding file, for example.
> A precursor cleanup (or maybe several) that removed those first would be nice.
It seems that https://bugs.openjdk.org/browse/JDK-8305590 only removed some of them.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15910#discussion_r1690413889
More information about the hotspot-dev
mailing list