diff options
author | Jason Evans <je@fb.com> | 2014-01-29 18:56:51 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2014-01-29 18:58:32 (GMT) |
commit | 526e4a59a2fe39e4f8bdf1ec0c0d2a5a557c3f62 (patch) | |
tree | f09588aa395ae83966fceff92119d147cc77f889 | |
parent | 2850e90d0d42d0e2b54864949bfa41c59c3a8dc9 (diff) | |
download | jemalloc-526e4a59a2fe39e4f8bdf1ec0c0d2a5a557c3f62.zip jemalloc-526e4a59a2fe39e4f8bdf1ec0c0d2a5a557c3f62.tar.gz jemalloc-526e4a59a2fe39e4f8bdf1ec0c0d2a5a557c3f62.tar.bz2 |
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.
-rw-r--r-- | test/unit/prof_accum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/prof_accum.c b/test/unit/prof_accum.c index cf3f287..08be419 100644 --- a/test/unit/prof_accum.c +++ b/test/unit/prof_accum.c @@ -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; \ |