From 82942172086d3d57e3c592a6a242dbd33761a2af Mon Sep 17 00:00:00 2001 From: Afshin Zafari Date: Tue, 18 Apr 2023 08:57:08 +0200 Subject: [PATCH] 8305590: Remove nothrow exception specifications from operator new --- src/hotspot/share/runtime/thread.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hotspot/share/runtime/thread.hpp b/src/hotspot/share/runtime/thread.hpp index ea5ee43b49760..1f82045d0bb58 100644 --- a/src/hotspot/share/runtime/thread.hpp +++ b/src/hotspot/share/runtime/thread.hpp @@ -200,9 +200,6 @@ class Thread: public ThreadShadow { // with the calling Thread? static bool is_JavaThread_protected_by_TLH(const JavaThread* target); - void* operator new(size_t size) { return allocate(size, true); } - void* operator new(size_t size, const std::nothrow_t& nothrow_constant) throw() { - return allocate(size, false); } void operator delete(void* p); protected: