> The tests fail when you build with assertions enabled (configure --enable-cassert).
Thank you for pointing that out. The new version of this patch fixes that. The tests are working properly now. All style related issues are fixed as well.
Best wishes, -- Denis
Hi,
+ selfrefcountL = cstate->selfrefcount;
+ cstate->selfrefcount = selfrefcount;
Maybe the variable selfrefcountL can be renamed slightly (e.g. curr_selfrefcount) so that the code is easier to read.