-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4108/
-----------------------------------------------------------

(Updated April 12, 2015, 5:24 a.m.)


Review request for Asterisk Developers, George Joseph and rmudgett.


Changes
-------

Addressed findings.

Moved AO2_DEBUG section next to the other atomic increments.


Bugs: ASTERISK-24936
    https://issues.asterisk.org/jira/browse/ASTERISK-24936


Repository: Asterisk


Description
-------

This implements "weak" references.  The weakproxy object is a real ao2 with 
normal reference counting of its own.  When a weakproxy is pointed to a normal 
object they hold references to each other.  The normal object is automatically 
freed when a single reference remains (the weakproxy).  The weakproxy also 
supports subscriptions that will notify callbacks when it does not point to any 
real object.


Diffs (updated)
-----

  /trunk/tests/test_astobj2_weaken.c PRE-CREATION 
  /trunk/main/astobj2.c 434545 
  /trunk/include/asterisk/astobj2.h 434545 

Diff: https://reviewboard.asterisk.org/r/4108/diff/


Testing
-------

Ran the included test with REF_DEBUG enabled under valgrind.  No reference 
leaks or improper memory access.  Though this does not test for races, I don't 
know of an automated way to do that.


Thanks,

Corey Farrell

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to