mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8305590: Remove nothrow exception specifications from operator new
Reviewed-by: coleenp, kbarrett
This commit is contained in:
parent
8d696aea9e
commit
0f51e63263
8 changed files with 26 additions and 50 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue