8305590: Remove nothrow exception specifications from operator new

Reviewed-by: coleenp, kbarrett
This commit is contained in:
Afshin Zafari 2023-04-23 15:20:18 +00:00 committed by Jesper Wilhelmsson
parent 8d696aea9e
commit 0f51e63263
8 changed files with 26 additions and 50 deletions

View file

@ -58,15 +58,6 @@ THREAD_LOCAL Thread* Thread::_thr_current = nullptr;
#endif
// ======= Thread ========
void* Thread::allocate(size_t size, bool throw_excpt, MEMFLAGS flags) {
return throw_excpt ? AllocateHeap(size, flags, CURRENT_PC)
: AllocateHeap(size, flags, CURRENT_PC, AllocFailStrategy::RETURN_NULL);
}
void Thread::operator delete(void* p) {
FreeHeap(p);
}
// Base class for all threads: VMThread, WatcherThread, ConcurrentMarkSweepThread,
// JavaThread