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:
parent
2850e90d0d
commit
526e4a59a2
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user