Prevent inlining of backtraced test functions.

Inlining of alloc_0() and alloc_1() would prevent generation of unique
backtraces, upon which the test code relies.
This commit is contained in:
Jason Evans 2014-01-29 10:56:51 -08:00
parent 2850e90d0d
commit 526e4a59a2

View File

@ -22,10 +22,10 @@ prof_dump_open_intercept(bool propagate_err, const char *filename)
}
#define alloc_n_proto(n) \
static void *alloc_##n(unsigned bits);
JEMALLOC_NOINLINE static void *alloc_##n(unsigned bits);
#define alloc_n_gen(n) \
static void * \
JEMALLOC_NOINLINE static void * \
alloc_##n(unsigned bits) \
{ \
void *p; \