commit | 57efa7bb0e284805c940472190bc9924327635a1 | [log] [tgz] |
---|---|---|
author | Jason Evans <jasone@canonware.com> | Wed Oct 08 17:57:19 2014 -0700 |
committer | Jason Evans <jasone@canonware.com> | Wed Oct 08 18:08:00 2014 -0700 |
tree | b6fd6d6d848197576affa3385004ca5e49f74fac | |
parent | 3a8b9b1fd95b1bb9b3dc00f6798eeb40d5100b7b [diff] |
Avoid atexit(3) when possible, disable prof_final by default. atexit(3) can deadlock internally during its own initialization if jemalloc calls atexit() during jemalloc initialization. Mitigate the impact by restructuring prof initialization to avoid calling atexit() unless the registered function will actually dump a final heap profile. Additionally, disable prof_final by default so that this land mine is opt-in rather than opt-out. This resolves #144.