astobj2: work around REF_DEBUG race which causes out of order log entries
authorCorey Farrell <git@cfware.com>
Sun, 13 Jul 2014 21:57:00 +0000 (21:57 +0000)
committerCorey Farrell <git@cfware.com>
Sun, 13 Jul 2014 21:57:00 +0000 (21:57 +0000)
commitfcdc4ad0bf5ef3661e6cb1fa7abd487efb23e46c
tree1fee74bc3fb6a286f2b46033287f6271f0d7c4ea
parent3e245920d8063a6416ad542e9bb01b2c3f3b38df
astobj2: work around REF_DEBUG race which causes out of order log entries

* Update refcounter.py to use delta's to track the current reference count.
* Use result from internal_ao2_ref to write old_refcount to refs_log.

Review: https://reviewboard.asterisk.org/r/3756/
........

Merged revisions 418504 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 418505 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 418506 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
contrib/scripts/refcounter.py
main/astobj2.c