mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-05 22:37:57 +00:00
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
deps/jemalloc/Hotfix throw bad_alloc.diff
vendored
Normal file
14
deps/jemalloc/Hotfix throw bad_alloc.diff
vendored
Normal 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;
|
||||
}
|
||||
|
||||
2
deps/jemalloc/src/jemalloc_cpp.cpp
vendored
2
deps/jemalloc/src/jemalloc_cpp.cpp
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user