<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/lib/talloc/talloc.c, branch talloc-2.0.8</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>talloc: Convert error cecking macros into fns</title>
<updated>2012-10-05T21:24:17+00:00</updated>
<author>
<name>Simo Sorce</name>
<email>idra@samba.org</email>
</author>
<published>2012-10-05T14:32:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=36ea39edf8dd9ede756debaf9632f3ded2a51abb'/>
<id>36ea39edf8dd9ede756debaf9632f3ded2a51abb</id>
<content type='text'>
This will avoid 'surprise returns' and makes the code cleare to readers.
These macros were complex enough to warrant a full function anyway not
just for readability but also for debuggability.

Thanks David for pointing out this issue.

Autobuild-User(master): Simo Sorce &lt;idra@samba.org&gt;
Autobuild-Date(master): Fri Oct  5 23:24:17 CEST 2012 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will avoid 'surprise returns' and makes the code cleare to readers.
These macros were complex enough to warrant a full function anyway not
just for readability but also for debuggability.

Thanks David for pointing out this issue.

Autobuild-User(master): Simo Sorce &lt;idra@samba.org&gt;
Autobuild-Date(master): Fri Oct  5 23:24:17 CEST 2012 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>Add memory limiting capability to talloc</title>
<updated>2012-10-05T03:57:17+00:00</updated>
<author>
<name>Simo Sorce</name>
<email>idra@samba.org</email>
</author>
<published>2012-09-22T20:15:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=a33a78c302fde61fdb7a6e71669f19be2cf5c836'/>
<id>a33a78c302fde61fdb7a6e71669f19be2cf5c836</id>
<content type='text'>
By calling talloc_set_memlimit() we can now set a max memory limit
for a whole talloc hierarchy.
ANy attempt to allocate memory beyond the max allowed for the whole
hierarchy wil cause an allocation failure.

Stealing memory correctly accounts for used memory in the old and the new
hierarchy but exceeding the memory limit in the new parent will not cause
a failure.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By calling talloc_set_memlimit() we can now set a max memory limit
for a whole talloc hierarchy.
ANy attempt to allocate memory beyond the max allowed for the whole
hierarchy wil cause an allocation failure.

Stealing memory correctly accounts for used memory in the old and the new
hierarchy but exceeding the memory limit in the new parent will not cause
a failure.
</pre>
</div>
</content>
</entry>
<entry>
<title>talloc: don't allow a talloc_pool inside a talloc_pool.</title>
<updated>2012-07-17T19:24:31+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-07-17T19:24:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=4f331872bc783445c709e5fe4846b8687e274953'/>
<id>4f331872bc783445c709e5fe4846b8687e274953</id>
<content type='text'>
We explicitly call free() on a pool which falls to zero, assuming it's
not inside another pool (we crash).  Check on creation and explicitly
document this case.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We explicitly call free() on a pool which falls to zero, assuming it's
not inside another pool (we crash).  Check on creation and explicitly
document this case.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>talloc: use a struct for pool headers.</title>
<updated>2012-07-17T19:23:31+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2012-07-17T19:23:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8893215aaf714154c190c66bf7d1ce568118ec39'/>
<id>8893215aaf714154c190c66bf7d1ce568118ec39</id>
<content type='text'>
This neatens the code a bit (we should do a similar thing for all the
TALLOC_CHUNK macros).

Two subtler changes:
(1) As a result of the struct, we actually pack object_count into the 
    talloc header on 32-bit platforms (since the header is 40 bytes, but
    needs to be 16-byte aligned).
(2) I avoid VALGRIND_MAKE_MEM_UNDEFINED on memmove when we resize the
    only entry in a pool; that's done later anyway.

With -O2 on my 11.04 Ubuntu 32-bit x86 laptop, the talloc_pool speed as
measured by testsuite.c actually increases 10%.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This neatens the code a bit (we should do a similar thing for all the
TALLOC_CHUNK macros).

Two subtler changes:
(1) As a result of the struct, we actually pack object_count into the 
    talloc header on 32-bit platforms (since the header is 40 bytes, but
    needs to be 16-byte aligned).
(2) I avoid VALGRIND_MAKE_MEM_UNDEFINED on memmove when we resize the
    only entry in a pool; that's done later anyway.

With -O2 on my 11.04 Ubuntu 32-bit x86 laptop, the talloc_pool speed as
measured by testsuite.c actually increases 10%.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>talloc: Fix copy&amp;paste errors</title>
<updated>2012-04-24T11:28:44+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2012-04-24T08:28:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8d5e6770f45283091e8ef41b1c4ca39356c1869a'/>
<id>8d5e6770f45283091e8ef41b1c4ca39356c1869a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>talloc: Slightly simplify talloc_unlink</title>
<updated>2012-01-02T18:07:23+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2012-01-02T13:56:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=ad3c0e03e2e1178a707ec6c529108f1df71a47a4'/>
<id>ad3c0e03e2e1178a707ec6c529108f1df71a47a4</id>
<content type='text'>
Nested if's are hard to understand to me.

Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;

Autobuild-User: Volker Lendecke &lt;vlendec@samba.org&gt;
Autobuild-Date: Mon Jan  2 19:07:23 CET 2012 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Nested if's are hard to understand to me.

Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;

Autobuild-User: Volker Lendecke &lt;vlendec@samba.org&gt;
Autobuild-Date: Mon Jan  2 19:07:23 CET 2012 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>talloc: Fix a typo</title>
<updated>2012-01-02T13:59:59+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2012-01-02T13:27:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=0bee8719b2dffc98557b9b3d68bb589b5589f3a4'/>
<id>0bee8719b2dffc98557b9b3d68bb589b5589f3a4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>talloc: fix a comment typo</title>
<updated>2011-10-26T00:44:02+00:00</updated>
<author>
<name>Michael Adam</name>
<email>obnox@samba.org</email>
</author>
<published>2011-10-23T14:57:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=6560bca57ef43ed6430d46d49a82bbfba2e825b8'/>
<id>6560bca57ef43ed6430d46d49a82bbfba2e825b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>talloc: Remove an unused variable</title>
<updated>2011-09-07T14:47:26+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2011-09-07T12:36:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=4ee613ba64cd49667ce934331a5fd8fae67c6795'/>
<id>4ee613ba64cd49667ce934331a5fd8fae67c6795</id>
<content type='text'>
Autobuild-User: Volker Lendecke &lt;vlendec@samba.org&gt;
Autobuild-Date: Wed Sep  7 16:47:26 CEST 2011 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Autobuild-User: Volker Lendecke &lt;vlendec@samba.org&gt;
Autobuild-Date: Wed Sep  7 16:47:26 CEST 2011 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>talloc: ensure the sibling linked list remains valid during a free</title>
<updated>2011-08-08T23:53:16+00:00</updated>
<author>
<name>Andrew Tridgell</name>
<email>tridge@samba.org</email>
</author>
<published>2011-08-08T08:24:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=cf986f200804ce873b43c1ecf2d5e1bd08eb8a25'/>
<id>cf986f200804ce873b43c1ecf2d5e1bd08eb8a25</id>
<content type='text'>
This ensures that the sibling list of a pointer doesn't become invalid
during a free operation. It is an alternative fix to the fix in
6f51a1f45bf4de062cce7a562477e8140630a53d, and avoids the problem of
trying to calculate the parent pointer early

This should fix the subtle spoolss talloc bug that Simo found

Autobuild-User: Andrew Tridgell &lt;tridge@samba.org&gt;
Autobuild-Date: Tue Aug  9 01:53:17 CEST 2011 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ensures that the sibling list of a pointer doesn't become invalid
during a free operation. It is an alternative fix to the fix in
6f51a1f45bf4de062cce7a562477e8140630a53d, and avoids the problem of
trying to calculate the parent pointer early

This should fix the subtle spoolss talloc bug that Simo found

Autobuild-User: Andrew Tridgell &lt;tridge@samba.org&gt;
Autobuild-Date: Tue Aug  9 01:53:17 CEST 2011 on sn-devel-104
</pre>
</div>
</content>
</entry>
</feed>
