MemoryIdler: use mallctl directly for tcache.flush
authorQi Wang <qiwang@fb.com>
Mon, 23 Oct 2017 19:09:40 +0000 (12:09 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 23 Oct 2017 19:18:19 +0000 (12:18 -0700)
commit12361241531946a948924baca4075081da16db55
tree683019e618a070dfce809a699dcf7dcae1ce5989
parent5bb0e1da38dd1c5c9ef4619da8aad99ccfd30cf2
MemoryIdler: use mallctl directly for tcache.flush

Summary:
tcache.flush may fail if tcache is disabled.  Avoid using mallctlCall
which throws on error.

Reviewed By: davidtgoldblatt

Differential Revision: D6115419

fbshipit-source-id: 39411c80af08dc7c855efd43297809b749f935bf
folly/detail/MemoryIdler.cpp