Commit 59799039 authored by Nathan Bronson's avatar Nathan Bronson Committed by Facebook Github Bot

fix SwapTrackingAlloc initial conditions

Summary:
This diff fixes the initial conditions for SwapTrackingAlloc,
which fixes F14 tests on platforms that do not have intrinsics enabled.

Differential Revision: D16755857

fbshipit-source-id: a76d8093100cbc0c5ce8723daa0976673d942299
parent a44b291c
...@@ -288,7 +288,7 @@ inline size_t& testAllocationCount() { ...@@ -288,7 +288,7 @@ inline size_t& testAllocationCount() {
} }
inline size_t& testAllocationMaxCount() { inline size_t& testAllocationMaxCount() {
static thread_local size_t value{0}; static thread_local size_t value{std::numeric_limits<std::size_t>::max()};
return value; return value;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment