From: Tudor Bosman Date: Fri, 27 Sep 2013 00:19:01 +0000 (-0700) Subject: Add declaration for allocm X-Git-Tag: v0.22.0~860 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6d372314d3e25a9193bdcde212edd315ad390e6a;p=folly.git Add declaration for allocm Test Plan: compiled Reviewed By: lucian@fb.com FB internal diff: D986998 --- diff --git a/folly/Malloc.h b/folly/Malloc.h index e10c8255..94a172b3 100644 --- a/folly/Malloc.h +++ b/folly/Malloc.h @@ -82,6 +82,7 @@ namespace folly { #if defined(JEMALLOC_MANGLE) && defined(JEMALLOC_EXPERIMENTAL) #define rallocm je_rallocm +#define allocm je_allocm #endif #endif /* ALLOCM_SUCCESS */ @@ -93,6 +94,8 @@ namespace folly { */ extern "C" int rallocm(void**, size_t*, size_t, size_t, int) __attribute__((weak)); +extern "C" int allocm(void**, size_t*, size_t, int) +__attribute__((weak)); #ifdef _LIBSTDCXX_FBSTRING namespace std _GLIBCXX_VISIBILITY(default) {