fix(deps/jemalloc): use throw std::bad_alloc() instead of libstdc++ internal (#26438)
Co-authored-by: Nefertumm <angelo.venturini@ingenieria.uner.edu.ar>
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
|||||||
|
# we changed this because jemalloc/jemalloc#2900 isn't in a tagged release yet
|
||||||
|
diff --git a/deps/jemalloc/src/jemalloc_cpp.cpp b/deps/jemalloc/src/jemalloc_cpp.cpp
|
||||||
|
index da0441a7c..05d5c3a7c 100644
|
||||||
|
--- a/deps/jemalloc/src/jemalloc_cpp.cpp
|
||||||
|
+++ b/deps/jemalloc/src/jemalloc_cpp.cpp
|
||||||
|
@@ -67,7 +67,7 @@ handleOOM(std::size_t size, bool nothrow) {
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ptr == nullptr && !nothrow)
|
||||||
|
- std::__throw_bad_alloc();
|
||||||
|
+ throw std::bad_alloc();
|
||||||
|
return ptr;
|
||||||
|
}
|
||||||
|
|
||||||
Vendored
+1
-1
@@ -67,7 +67,7 @@ handleOOM(std::size_t size, bool nothrow) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ptr == nullptr && !nothrow)
|
if (ptr == nullptr && !nothrow)
|
||||||
std::__throw_bad_alloc();
|
throw std::bad_alloc();
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user