in reply to Re^2: threads, refcounting, XS, DESTROY
in thread threads, refcounting, XS, DESTROY

Unfortunately, it appears that _refcnt() does not always report the expected value during DESTROYction, meaning, IIUC, that final cleanup might be missed using this technique:

http://www.nntp.perl.org/group/perl.ithreads/2007/08/msg1199.html

Looks like it's back to user-defined bookkeeping...

  • Comment on Re^3: threads, refcounting, XS, DESTROY