flygard-core/deps/jemalloc/Hotfix throw bad_alloc.diff
Joe Amenta 584637dc0f
fix(deps/jemalloc): use throw std::bad_alloc() instead of libstdc++ internal (#26438)
Co-authored-by: Nefertumm <angelo.venturini@ingenieria.uner.edu.ar>
2026-07-26 01:57:50 +02:00

14 lines
455 B
Diff

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