Commit 3c69262c authored by Andrew Gallagher's avatar Andrew Gallagher Committed by Facebook Github Bot

folly/memory/Malloc.h: include a few more JEMalloc macro definitions

Summary:
`folly/memory/Malloc.h` is generally used as a shim for the JEMalloc headers, providing
weak declarations of JEMalloc functions so that they can be referenced in library code
that may or may not be linked with JEMalloc at build/run time.

This adds a few more macro definition stubs for when JEMalloc isn't available.

Reviewed By: yfeldblum

Differential Revision: D10395893

fbshipit-source-id: 7b45714297acd85afd3b222687feeda491fcb46d
parent 03f51db9
......@@ -37,6 +37,18 @@
#ifndef MALLOCX_ZERO
#define MALLOCX_ZERO (static_cast<int>(0x40))
#endif
#ifndef MALLOCX_ARENA
#define MALLOCX_ARENA(_) (static_cast<int>(0))
#endif
#ifndef MALLOCX_LG_ALIGN
#define MALLOCX_LG_ALIGN(_) (static_cast<int>(0))
#endif
#ifndef MALLCTL_ARENAS_ALL
#define MALLCTL_ARENAS_ALL (static_cast<int>(0))
#endif
#ifndef MALLOCX_TCACHE_NONE
#define MALLOCX_TCACHE_NONE (static_cast<int>(0))
#endif
#endif
// If using fbstring from libstdc++ (see comment in FBString.h), then
......
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