On Mon, 17 Apr 2023 17:09:44 GMT, Afshin Zafari <d...@openjdk.org> wrote:

> - 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

This pull request has now been integrated.

Changeset: 0f51e632
Author:    Afshin Zafari <afshin.zaf...@oracle.com>
Committer: Jesper Wilhelmsson <jwilh...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/0f51e6326373ff7d4a4d9a0e3a2788401f73405d
Stats:     53 lines in 8 files changed: 3 ins; 27 del; 23 mod

8305590: Remove nothrow exception specifications from operator new

Reviewed-by: coleenp, kbarrett

-------------

PR: https://git.openjdk.org/jdk/pull/13498

Reply via email to