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:
Joe Amenta
2026-07-25 19:57:50 -04:00
committed by GitHub
parent ccd6e1ffef
commit 584637dc0f
2 changed files with 15 additions and 1 deletions

View File

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

View File

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