mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-07 15:59:32 +03:00
Address feedback
This commit is contained in:
parent
9e41263d39
commit
4d62cbde3a
1 changed files with 5 additions and 5 deletions
10
src/alloc.c
10
src/alloc.c
|
@ -803,11 +803,11 @@ static bool mi_try_new_handler(bool nothrow) {
|
||||||
if (h==NULL) {
|
if (h==NULL) {
|
||||||
_mi_error_message(ENOMEM, "out of memory in 'new'");
|
_mi_error_message(ENOMEM, "out of memory in 'new'");
|
||||||
if (!nothrow) {
|
if (!nothrow) {
|
||||||
#ifdef __EXCEPTIONS
|
#if defined(__GNUC__) && !defined(__EXCEPTIONS)
|
||||||
throw std::bad_alloc();
|
abort();
|
||||||
#else
|
#else
|
||||||
abort();
|
throw std::bad_alloc();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue