summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-08-26 20:47:20 (GMT)
committerJason Evans <jasone@canonware.com>2015-08-26 20:47:20 (GMT)
commit5d2e875ac9283cb99ff714c5cb56e1fc98a7f007 (patch)
tree3cda599d71c03d3d35213edd8d2680369ffc2288
parent45e9f66c280e1ba8bebf7bed387a43bc9e45536d (diff)
downloadjemalloc-5d2e875ac9283cb99ff714c5cb56e1fc98a7f007.zip
jemalloc-5d2e875ac9283cb99ff714c5cb56e1fc98a7f007.tar.gz
jemalloc-5d2e875ac9283cb99ff714c5cb56e1fc98a7f007.tar.bz2
Add JEMALLOC_CXX_THROW to the memalign() function prototype.
Add JEMALLOC_CXX_THROW to the memalign() function prototype, in order to match glibc and avoid compilation errors when including both jemalloc/jemalloc.h and malloc.h in C++ code. This change was unintentionally omitted from ae93d6bf364e9db9f9ee69c3e5f9df110d8685a4 (Avoid function prototype incompatibilities.).
-rw-r--r--ChangeLog3
-rw-r--r--include/jemalloc/jemalloc_protos.h.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9bcf299..97728b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,9 @@ brevity. Much more detail can be found in the git revision history:
- Don't bitshift by negative amounts when encoding/decoding run sizes in chunk
header maps. This affected systems with page sizes greater than 8 KiB.
- Rename index_t to szind_t to avoid an existing type on Solaris.
+ - Add JEMALLOC_CXX_THROW to the memalign() function prototype, in order to
+ match glibc and avoid compilation errors when including both
+ jemalloc/jemalloc.h and malloc.h in C++ code.
* 4.0.0 (August 17, 2015)
diff --git a/include/jemalloc/jemalloc_protos.h.in b/include/jemalloc/jemalloc_protos.h.in
index 317ffdb..a78414b 100644
--- a/include/jemalloc/jemalloc_protos.h.in
+++ b/include/jemalloc/jemalloc_protos.h.in
@@ -56,7 +56,7 @@ JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW @je_@malloc_usable_size(
#ifdef JEMALLOC_OVERRIDE_MEMALIGN
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN
void JEMALLOC_NOTHROW *@je_@memalign(size_t alignment, size_t size)
- JEMALLOC_ATTR(malloc);
+ JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc);
#endif
#ifdef JEMALLOC_OVERRIDE_VALLOC