mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-15 07:01:42 +03:00
Fix build with gcc 16.x
src/jemalloc_cpp.cpp: In function 'void* handleOOM(std::size_t, bool)': src/jemalloc_cpp.cpp:90:22: error: '__throw_bad_alloc' is not a member of 'std'; did you mean '__throw_bad_cast'? 90 | std::__throw_bad_alloc(); https://bugs.gentoo.org/967868 Patch downloaded from https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/jemalloc/files/jemalloc-5.3.0-dont-call-libstdcxx-internals.patch?id=4b929d70d69b013ea881879d66687b461d812aec Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
This commit is contained in:
parent
1972241cd2
commit
e73e76e0ef
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ handleOOM(std::size_t size, bool nothrow) {
|
|||
}
|
||||
|
||||
if (ptr == nullptr && !nothrow)
|
||||
std::__throw_bad_alloc();
|
||||
throw std::bad_alloc();
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue