summaryrefslogtreecommitdiff
path: root/port/win/win_jemalloc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'port/win/win_jemalloc.cc')
-rw-r--r--port/win/win_jemalloc.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/port/win/win_jemalloc.cc b/port/win/win_jemalloc.cc
index b20779388..a29232f8a 100644
--- a/port/win/win_jemalloc.cc
+++ b/port/win/win_jemalloc.cc
@@ -18,7 +18,7 @@
#if defined(ZSTD) && defined(ZSTD_STATIC_LINKING_ONLY)
#include <zstd.h>
#if (ZSTD_VERSION_NUMBER >= 500)
-namespace rocksdb {
+namespace ROCKSDB_NAMESPACE {
namespace port {
void* JemallocAllocateForZSTD(void* /* opaque */, size_t size) {
return je_malloc(size);
@@ -30,21 +30,21 @@ ZSTD_customMem GetJeZstdAllocationOverrides() {
return {JemallocAllocateForZSTD, JemallocDeallocateForZSTD, nullptr};
}
} // namespace port
-} // namespace rocksdb
+} // namespace ROCKSDB_NAMESPACE
#endif // (ZSTD_VERSION_NUMBER >= 500)
#endif // defined(ZSTD) defined(ZSTD_STATIC_LINKING_ONLY)
// Global operators to be replaced by a linker when this file is
// a part of the build
-namespace rocksdb {
+namespace ROCKSDB_NAMESPACE {
namespace port {
void* jemalloc_aligned_alloc(size_t size, size_t alignment) ROCKSDB_NOEXCEPT {
return je_aligned_alloc(alignment, size);
}
void jemalloc_aligned_free(void* p) ROCKSDB_NOEXCEPT { je_free(p); }
} // namespace port
-} // namespace rocksdb
+} // namespace ROCKSDB_NAMESPACE
void* operator new(size_t size) {
void* p = je_malloc(size);