diff options
author | Simo Sorce <idra@samba.org> | 2012-09-22 16:15:47 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2012-10-05 05:57:17 +0200 |
commit | a33a78c302fde61fdb7a6e71669f19be2cf5c836 (patch) | |
tree | c6b06de88fe07acf5999be3f1d24884827a44fb1 /source4/ldap_server | |
parent | 78594909b8b22bd07978922b1c85dfd6f6456963 (diff) | |
download | samba-a33a78c302fde61fdb7a6e71669f19be2cf5c836.tar.gz samba-a33a78c302fde61fdb7a6e71669f19be2cf5c836.tar.bz2 samba-a33a78c302fde61fdb7a6e71669f19be2cf5c836.zip |
Add memory limiting capability to talloc
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.
Diffstat (limited to 'source4/ldap_server')
0 files changed, 0 insertions, 0 deletions