make `usingJEMalloc()` a constexpr when USE_JEMALLOC is defined v2017.11.27.00
authorBin Liu <binliu@fb.com>
Mon, 27 Nov 2017 06:07:41 +0000 (22:07 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 27 Nov 2017 06:24:12 +0000 (22:24 -0800)
commitee207f19892790e091082cc7c7ab8c5df0398061
treee1ebf5e7cbf4cf450ed049efbbbb22740c67a07e
parent13e576ac96bfc04b412d8fc54ad5abe6f2552986
make `usingJEMalloc()` a constexpr when USE_JEMALLOC is defined

Summary: This would save some function calls and reduce code size if we know we will use jemalloc.

Reviewed By: yfeldblum

Differential Revision: D6411810

fbshipit-source-id: 9db471678e473945f5f00354c0a1285ecdb91de6
folly/memory/Malloc.h