Merge "libstdc++: make operator new call abort on failure."
This commit is contained in:
commit
4d9b75a9b0
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ void* operator new(std::size_t size)
|
|||
{
|
||||
void* p = malloc(size);
|
||||
if (p == NULL) {
|
||||
// abort();
|
||||
abort();
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ void* operator new[](std::size_t size)
|
|||
{
|
||||
void* p = malloc(size);
|
||||
if (p == NULL) {
|
||||
// abort();
|
||||
abort();
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue