diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-22 20:19:00 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-22 20:19:00 +0000 |
commit | f18ebf7f35cde5a65f0e0c96758d58c2e65beeeb (patch) | |
tree | 4bad167551d9616f9bb0a0c508ec7495dd896996 /channels | |
parent | af5297d6cecce5488d610523c3403e0450014a07 (diff) |
Move the REF_DEBUG comment higher in the include list.
Uncommenting the REF_DEBUG definition where it was in the source
resulted in only a small part of the astobj2 references being logged
to a file. Moving this up higher in the include list causes all references
to be logged as they should be.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@248347 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 086cec93f..5b089dd1e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -216,7 +216,18 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/network.h" #include "asterisk/paths.h" /* need ast_config_AST_SYSTEM_NAME */ - +/* + Uncomment the define below, if you are having refcount related memory leaks. + With this uncommented, this module will generate a file, /tmp/refs, which contains + a history of the ao2_ref() calls. To be useful, all calls to ao2_* functions should + be modified to ao2_t_* calls, and include a tag describing what is happening with + enough detail, to make pairing up a reference count increment with its corresponding decrement. + The refcounter program in utils/ can be invaluable in highlighting objects that are not + balanced, along with the complete history for that object. + In normal operation, the macros defined will throw away the tags, so they do not + affect the speed of the program at all. They can be considered to be documentation. +*/ +/* #define REF_DEBUG 1 */ #include "asterisk/lock.h" #include "asterisk/config.h" #include "asterisk/module.h" @@ -237,18 +248,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/causes.h" #include "asterisk/utils.h" #include "asterisk/file.h" -/* - Uncomment the define below, if you are having refcount related memory leaks. - With this uncommented, this module will generate a file, /tmp/refs, which contains - a history of the ao2_ref() calls. To be useful, all calls to ao2_* functions should - be modified to ao2_t_* calls, and include a tag describing what is happening with - enough detail, to make pairing up a reference count increment with its corresponding decrement. - The refcounter program in utils/ can be invaluable in highlighting objects that are not - balanced, along with the complete history for that object. - In normal operation, the macros defined will throw away the tags, so they do not - affect the speed of the program at all. They can be considered to be documentation. -*/ -/* #define REF_DEBUG 1 */ #include "asterisk/astobj2.h" #include "asterisk/dnsmgr.h" #include "asterisk/devicestate.h" |