-
Enhancement
-
Resolution: Fixed
-
P4
-
21
-
b06
-
windows
It seems like /Zc:throwingNew- (the default) corresponds to gcc -fcheck-new, and /Zc:throwingNew corresponds to -fno-check-new (the default).
The Visual Studio documentation strongly recommends using /Zc:throwingNew if possible, as turning it off (the default) seriously bloats code and inhibits optimizations.
https://learn.microsoft.com/en-us/cpp/build/reference/zc-throwingnew-assume-operator-new-throws?view=msvc-170
As mentioned in
The documentation for /Zc:throwingNew is somewhat vague and confusing, so some investigation is probably needed to verify it really has the desired effect for us.
- relates to
-
JDK-8342639 Global operator new in adlc has wrong exception spec
- Open
-
JDK-8305590 Remove nothrow exception specifications from operator new
- Resolved
- links to
-
Commit(master) openjdk/jdk/a289bcfe
-
Review(master) openjdk/jdk/22039