diff options
author | David 'Digit' Turner <digit@android.com> | 2011-06-17 02:51:58 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2011-06-17 02:51:58 -0700 |
commit | 4d9b75a9b08c19cef81b22f889edba61257fb356 (patch) | |
tree | cb3a3a0498560224a923bbf912b90062cc3bdd09 | |
parent | b127b1f208e67d74a7ee94ad2bd0ffb2fed3af6b (diff) | |
parent | 7c72513bfa2a10f48e3205e7d8bf66f6ee1a7082 (diff) | |
download | bionic-android-sdk-tools_r12.zip bionic-android-sdk-tools_r12.tar.gz bionic-android-sdk-tools_r12.tar.bz2 |
Merge "libstdc++: make operator new call abort on failure."android-sdk-tools_r12
-rw-r--r-- | libstdc++/src/new.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++/src/new.cpp b/libstdc++/src/new.cpp index a9c92d4..ddd3dba 100644 --- a/libstdc++/src/new.cpp +++ b/libstdc++/src/new.cpp @@ -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; } |