Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
trap: warmup backtrace()
  • Loading branch information
perexg committed Mar 11, 2016
1 parent ce3744a commit b20b23e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/trap.c
Expand Up @@ -294,6 +294,11 @@ trap_init(const char *ver)

dl_iterate_phdr(callback, NULL);

#if ENABLE_EXECINFO
void *frames[MAXFRAMES];
/* warmup backtrace allocators */
backtrace(frames, MAXFRAMES);
#endif

memset(&sa, 0, sizeof(sa));

Expand Down

0 comments on commit b20b23e

Please sign in to comment.