diff options
author | Jason Evans <jasone@canonware.com> | 2014-10-09 00:57:19 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2014-10-09 01:08:00 (GMT) |
commit | 57efa7bb0e284805c940472190bc9924327635a1 (patch) | |
tree | b6fd6d6d848197576affa3385004ca5e49f74fac /src/huge.c | |
parent | 3a8b9b1fd95b1bb9b3dc00f6798eeb40d5100b7b (diff) | |
download | jemalloc-57efa7bb0e284805c940472190bc9924327635a1.zip jemalloc-57efa7bb0e284805c940472190bc9924327635a1.tar.gz jemalloc-57efa7bb0e284805c940472190bc9924327635a1.tar.bz2 |
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.
Diffstat (limited to 'src/huge.c')
0 files changed, 0 insertions, 0 deletions