summaryrefslogtreecommitdiff
path: root/src/mongo/util/future_bm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/future_bm.cpp')
-rw-r--r--src/mongo/util/future_bm.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/util/future_bm.cpp b/src/mongo/util/future_bm.cpp
index fa6bf6e01ea..d9ae5259451 100644
--- a/src/mongo/util/future_bm.cpp
+++ b/src/mongo/util/future_bm.cpp
@@ -31,12 +31,11 @@
#include <benchmark/benchmark.h>
-#include "mongo/bson/inline_decls.h"
#include "mongo/util/future.h"
namespace mongo {
-NOINLINE_DECL int makeReadyInt() {
+MONGO_COMPILER_NOINLINE int makeReadyInt() {
benchmark::ClobberMemory();
return 1;
}
@@ -47,7 +46,7 @@ void BM_plainIntReady(benchmark::State& state) {
}
}
-NOINLINE_DECL Future<int> makeReadyFut() {
+MONGO_COMPILER_NOINLINE Future<int> makeReadyFut() {
benchmark::ClobberMemory();
return Future<int>::makeReady(1);
}
@@ -64,7 +63,7 @@ void BM_futureIntReadyThen(benchmark::State& state) {
}
}
-NOINLINE_DECL Future<int> makeReadyFutWithPromise() {
+MONGO_COMPILER_NOINLINE Future<int> makeReadyFutWithPromise() {
benchmark::ClobberMemory();
auto pf = makePromiseFuture<int>();
pf.promise.emplaceValue(1);