svn commit: samba r2709 - in branches/SAMBA_4_0/source: lib torture torture/local

tridge at samba.org tridge at samba.org
Tue Sep 28 05:42:02 GMT 2004


Author: tridge
Date: 2004-09-28 05:42:02 +0000 (Tue, 28 Sep 2004)
New Revision: 2709

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=2709&nolog=1

Log:
finally solved the talloc reference problem.

The problem was that the simple "uint_t ref_count;" in a talloc chunk
did not give enough information. It told us that a pointer was
referenced more than once, but it didn't say who it was referenced
by. This means that when the pointer was freed we had no sane way to
clean up the reference.

I have now replaced ref_count with a "refs" list, which means that
references point to the pointer, and the pointer has a linked list of
references. So now we can cleanup from either direction without losing track of anything.

I've also added a LOCAL-TALLOC smbtorture test that tests talloc
behaviour for some common uses.



Added:
   branches/SAMBA_4_0/source/torture/local/talloc.c
Modified:
   branches/SAMBA_4_0/source/lib/talloc.c
   branches/SAMBA_4_0/source/torture/config.mk
   branches/SAMBA_4_0/source/torture/torture.c


Changeset:
Sorry, the patch is too large (453 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=2709&nolog=1


More information about the samba-cvs mailing list