]> git.ipfire.org Git - thirdparty/asterisk.git/commit
astobj2: Record lock usage to refs log when DEBUG_THREADS is enabled.
authorCorey Farrell <git@cfware.com>
Mon, 1 Oct 2018 04:11:44 +0000 (00:11 -0400)
committerCorey Farrell <git@cfware.com>
Tue, 2 Oct 2018 02:45:48 +0000 (21:45 -0500)
commit693e00eee6deef96fdbfe8cdff6c265cb273d96c
tree4e55497bdb2e443c548a4c166ce2dece056da299
parent5a9230eacb3f3e2db60abc4c4d684bbe497580b6
astobj2: Record lock usage to refs log when DEBUG_THREADS is enabled.

When DEBUG_THREADS is enabled we can know if the astobj2 mutex / rwlock
was ever used, so it can be recorded in the REF_DEBUG destructor entry.

Create contrib/scripts/reflocks.py to process locking used by
allocator.  This can be used to identify places where
AO2_ALLOC_OPT_LOCK_NOLOCK should be used to reduce memory usage.

Change-Id: I2e3cd23336a97df2692b545f548fd79b14b53bf4
contrib/scripts/refcounter.py
contrib/scripts/reflocks.py [new file with mode: 0755]
main/astobj2.c