RFR: 8305590: Remove nothrow exception specifications from operator new [v3]
Kim Barrett
kbarrett at openjdk.org
Mon Apr 24 00:25:52 UTC 2023
On Sun, 23 Apr 2023 18:31:57 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> I believe this may have missed removing the exception specifier from an operator new inside AnyObj, allocation.cpp, since gcc 12 and up on my end now refuses to compile HotSpot with this change. I'll create a cleanup change for this, if there isn't any opposition to that
It builds for me, with gcc12.2.
However, it does look like `AnyObj::operator new(size_t, MEMFLAGS)` should have had the nothrow exception spec
removed (both in the header and the .cpp) but didn't.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13498#issuecomment-1519208242
More information about the build-dev
mailing list