am 4d9b75a9
: Merge "libstdc++: make operator new call abort on failure."
* commit '4d9b75a9b08c19cef81b22f889edba61257fb356': libstdc++: make operator new call abort on failure.
This commit is contained in:
commit
d0909a874a
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