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:
#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>