mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8000617: It should be possible to allocate memory without the VM dying
Reviewed-by: coleenp, kamg
This commit is contained in:
parent
228b4f6d7f
commit
953bec36ab
7 changed files with 87 additions and 33 deletions
|
@ -110,7 +110,7 @@ class Thread: public ThreadShadow {
|
|||
void* _real_malloc_address;
|
||||
public:
|
||||
void* operator new(size_t size) { return allocate(size, true); }
|
||||
void* operator new(size_t size, std::nothrow_t& nothrow_constant) { return allocate(size, false); }
|
||||
void* operator new(size_t size, const std::nothrow_t& nothrow_constant) { return allocate(size, false); }
|
||||
void operator delete(void* p);
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue