]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Fix build failures due to missing JEMALLOC_CXX_THROW macro (#5053)
authorYi Wu <yiwu@pingcap.com>
Sat, 9 Mar 2019 01:02:00 +0000 (17:02 -0800)
committerFosco Marotto <fjm@fb.com>
Tue, 23 Apr 2019 22:16:09 +0000 (15:16 -0700)
Summary:
JEMALLOC_CXX_THROW is not defined for earlier versions of jemalloc (e.g. 3.6), causing builds to fail on some platforms. Fixing it. Closes #4869
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5053

Differential Revision: D14390034

Pulled By: sagar0

fbshipit-source-id: b2b7a03cd377201ef385eb521f65bae85c558055

HISTORY.md
port/jemalloc_helper.h

index 9a9d7bc892dedee9fc666e543a9970473595295c..06d4dd04bc7540b5c2c905374f940d39d6d080b6 100644 (file)
@@ -9,6 +9,10 @@
 * Make BlobDB wait for all background tasks on shutdown.
 * Fixed a BlobDB issue where some trash files are not tracked causing them to remain forever.
 
+### Bug Fixes
+* Fix JEMALLOC_CXX_THROW macro missing from older Jemalloc versions, causing build failures on some platforms.
+
+
 ## 6.0.0 (2/19/2019)
 ### New Features
 * Enabled checkpoint on readonly db (DBImplReadOnly).
index 412a80d26a42ae43ef126e70d06086ee0e583630..0c216face13e7a8f959e4b23baac67b6410fbb91 100644 (file)
 #include <jemalloc/jemalloc.h>
 #endif
 
+#ifndef JEMALLOC_CXX_THROW
+#define JEMALLOC_CXX_THROW
+#endif
+
 // Declare non-standard jemalloc APIs as weak symbols. We can null-check these
 // symbols to detect whether jemalloc is linked with the binary.
 extern "C" void* mallocx(size_t, int) __attribute__((__weak__));