- The `throw()` (i.e., no throw) specifications are removed from the instances of `operator new` where _do not_ return `nullptr`.
- The `-fcheck-new` is removed from the gcc compile flags. - The `operator new` and `operator delete` are deleted from `StackObj`. - The `GrowableArrayCHeap::operator delete` is added to be matched with its corresponding allocation`AnyObj::operator new`, because gcc complains on that after removing the `-fcheck-new` flag. - The `Thread::operator new`with and without `null` return are removed. ### Tests local: linux-x64 gtest:GrowableArrayCHeap, macosx-aarch64 hotspot:tier1 mach5: tiers 1-5 ------------- Commit messages: - 8305590: Remove nothrow exception specifications from operator new - 8305590: Remove nothrow exception specifications from operator new Changes: https://git.openjdk.org/jdk/pull/13498/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13498&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8305590 Stats: 34 lines in 7 files changed: 3 ins; 8 del; 23 mod Patch: https://git.openjdk.org/jdk/pull/13498.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/13498/head:pull/13498 PR: https://git.openjdk.org/jdk/pull/13498