]> 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:54 +0000 (21:45 -0500)
commit078459b3f2098a2176b8e9ca7a6651bdfbb0446b
tree35c3af8caae094fffc64a90e433ce78405330596
parent9cedc7bc81e708d4d25bbc990173375d36ca154e
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