prof_backtrace: use unw_backtrace

unw_backtrace:
- does internal per-thread caching
- doesn't acquire an internal lock
This commit is contained in:
Lucian Adrian Grijincu
2014-04-21 20:52:35 -07:00
parent 3541a904d6
commit 9d4e13f45a
2 changed files with 11 additions and 26 deletions

View File

@@ -352,9 +352,9 @@ static const bool config_ivsalloc =
# endif
# endif
# define VARIABLE_ARRAY(type, name, count) \
type *name = alloca(sizeof(type) * count)
type *name = alloca(sizeof(type) * (count))
#else
# define VARIABLE_ARRAY(type, name, count) type name[count]
# define VARIABLE_ARRAY(type, name, count) type name[(count)]
#endif
#include "jemalloc/internal/valgrind.h"