summaryrefslogtreecommitdiff
path: root/lib/util/talloc_stack.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-27 12:36:23 -0700
committerJeremy Allison <jra@samba.org>2013-08-27 15:44:19 -0700
commitfe790f6cbc9b888a8d613cfb515f0d0c76daad47 (patch)
tree30b307f02aaa200c3cc9817332b6b9988d92f912 /lib/util/talloc_stack.h
parent323cccd35d06c7327c19dc5cb891043507624d7d (diff)
downloadsamba-fe790f6cbc9b888a8d613cfb515f0d0c76daad47.tar.gz
samba-fe790f6cbc9b888a8d613cfb515f0d0c76daad47.tar.bz2
samba-fe790f6cbc9b888a8d613cfb515f0d0c76daad47.zip
Start to fix talloc memlimits with talloc pools.
Add the functions: talloc_memlimit_grow(), talloc_memlimit_shrink(), talloc_memlimit_update_on_free(). as replacements for talloc_memlimit_update(). The interface to talloc_memlimit_update() is very hard to understand and use. The above functions are (to me) much clearer. The goal of these changes is to only update the memlimits on malloc/free/realloc, not on every pool allocation. That way we only count pool creation as allocation from any imposed limits, not allocation from an already created pool. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'lib/util/talloc_stack.h')
0 files changed, 0 insertions, 0 deletions