Merge "libstdc++: make operator new call abort on failure."

This commit is contained in:
David 'Digit' Turner 2011-06-17 02:51:58 -07:00 committed by Android Code Review
commit 4d9b75a9b0

View file

@ -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;
}