Commit a04f2681 authored by Nathan Bronson's avatar Nathan Bronson Committed by Andrii Grynenko

detail::MemoryIdler should use Malloc.h's mallctl decl

Summary:
Malloc.h now takes care to declare mallctl properly on platforms
that aren't using weak symbols, so we should just rely on that for
MemoryIdler.cpp.  This is one step toward fixing folly build on OS X.

Test Plan: fbmake runtests

Reviewed By: je@fb.com

Subscribers: yiding, njormrod

FB internal diff: D1596930

Tasks: 4952724

Blame Revision:
parent f0c0e8d2
......@@ -28,13 +28,6 @@
#include <utility>
// weak linking means the symbol will be null if not available, instead
// of a link failure
extern "C" int mallctl(const char *name, void *oldp, size_t *oldlenp,
void *newp, size_t newlen)
__attribute__((__weak__));
namespace folly { namespace detail {
AtomicStruct<std::chrono::steady_clock::duration>
......
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