draft proposal for ref counting in D

Walter Bright newshound2 at digitalmars.com
Wed Oct 9 19:22:13 PDT 2013


Rainer Schuetze wrote:
On 29.06.2013 09:36, Rainer Schuetze wrote:
 >                         inc [ecx].refcnt
 > done:
                           mov [S], ecx


Just wanted to add the book states that lock-free reference counting can be 
implemented with a cas2 operation modifying two seperate locations atomically. 
Unfortunately this operation does not exist in most processors. This might be 
the quoted paper: http://scholr.ly/paper/2199608/lock-free-reference-counting



More information about the Digitalmars-d mailing list