[Asterisk-code-review] astobj2: Record lock usage to refs log when DEBUG THREADS is... (asterisk[master])
Corey Farrell
asteriskteam at digium.com
Mon Oct 1 21:27:44 CDT 2018
Hello Richard Mudgett, Jenkins2,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/10347
to look at the new patch set (#2).
Change subject: astobj2: Record lock usage to refs log when DEBUG_THREADS is enabled.
......................................................................
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
---
M contrib/scripts/refcounter.py
A contrib/scripts/reflocks.py
M main/astobj2.c
3 files changed, 157 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/47/10347/2
--
To view, visit https://gerrit.asterisk.org/10347
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2e3cd23336a97df2692b545f548fd79b14b53bf4
Gerrit-Change-Number: 10347
Gerrit-PatchSet: 2
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181001/41e8ac93/attachment.html>
More information about the asterisk-code-review
mailing list