summaryrefslogtreecommitdiff
path: root/port/win/win_jemalloc.cc
diff options
context:
space:
mode:
authorsdong <siying.d@fb.com>2022-10-24 16:56:01 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2022-10-24 16:56:01 -0700
commit7cf27eae0ada5c34e00e09eeca6b1be0c6336a5d (patch)
tree6a13404e7dc8effca5ab38d3e94fccb0ba8bcfc4 /port/win/win_jemalloc.cc
parent4d9cb433fa177c3b12be7336eebc8f0f3164b05b (diff)
clang format files under port/ (#10849)
Summary: Run "clang-format" against files under port to make it happy. Pull Request resolved: https://github.com/facebook/rocksdb/pull/10849 Test Plan: Watch existing CI to pass. Reviewed By: anand1976 Differential Revision: D40645839 fbshipit-source-id: 582b4215503223795cf6234af90cc4e8e4eba773
Diffstat (limited to 'port/win/win_jemalloc.cc')
-rw-r--r--port/win/win_jemalloc.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/port/win/win_jemalloc.cc b/port/win/win_jemalloc.cc
index 691ebc27e..cf38f55b7 100644
--- a/port/win/win_jemalloc.cc
+++ b/port/win/win_jemalloc.cc
@@ -10,10 +10,11 @@
#if defined(OS_WIN)
#ifndef ROCKSDB_JEMALLOC
-# error This file can only be part of jemalloc aware build
+#error This file can only be part of jemalloc aware build
#endif
#include <stdexcept>
+
#include "jemalloc/jemalloc.h"
#include "port/win/port_win.h"
@@ -31,10 +32,10 @@ void JemallocDeallocateForZSTD(void* /* opaque */, void* address) {
ZSTD_customMem GetJeZstdAllocationOverrides() {
return {JemallocAllocateForZSTD, JemallocDeallocateForZSTD, nullptr};
}
-} // namespace port
+} // namespace port
} // namespace ROCKSDB_NAMESPACE
-#endif // (ZSTD_VERSION_NUMBER >= 500)
-#endif // defined(ZSTD) defined(ZSTD_STATIC_LINKING_ONLY)
+#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