summaryrefslogtreecommitdiff
path: root/source3/lib/talloc
AgeCommit message (Collapse)AuthorFilesLines
2008-01-10Fix a c++ warningVolker Lendecke1-1/+2
(This used to be commit ee905a085fff5410d02c3e5fa2664e989de4afd4)
2008-01-10talloc_free_children can only reset pool if it's emptyVolker Lendecke1-1/+2
(This used to be commit 0272b46515b4c4515d5cad8e86fab61d8e91e29e)
2008-01-10Mark talloc_pool memory for valgrindVolker Lendecke1-3/+16
(This used to be commit d89e42f1d2faa018c584025296d6be8195cbcf20)
2008-01-09Implement talloc_pool()Volker Lendecke3-7/+207
A talloc pool is a chunk of memory that can be used as a context for further talloc calls. Allocations with the pool as the parent just chew from that memory by incrementing a pointer. If the talloc pool is full, then we fall back to the normal system-level malloc(3) to get memory. The use case for talloc pools is the transient memory that is used for handling a single SMB request. Incrementing a pointer will be way faster than any malloc implementation. There is a downside of this: If you use talloc_steal() to move something out of the pool, the whole pool memory is kept around until the last object inside the pool is freed. So if you talloc_free() the pool, it might happen that the memory is freed later. So don't hang anything off a talloc pool that should live long. Volker (This used to be commit 287e29d988813007eeebc0c2bef3b46ab8bedee9)
2008-01-09Add a comment.Michael Adam1-0/+1
Michael (This used to be commit 3a4bf4b7c3081048f0d5491dae6610388c268c2f)
2008-01-09Fix talloctort: move size check after referenced ptr check.Michael Adam1-5/+5
Michael (This used to be commit 45b219642c529865a898625eeb0433c60b233867)
2008-01-09Don't shrink a talloc area if we have less than 1k to gainVolker Lendecke1-0/+5
(This used to be commit 28a72ebd4541fb54f284da49081345e54130c75a)
2007-10-10r25230: sync lib/talloc with SAMBA_4_0Stefan Metzmacher4-125/+184
metze (This used to be commit 84ebb6cac224cabf3856a632de80a8a9c687329b)
2007-10-10r25164: Add talloc_asprintf_append_buffer() and the docs for it.Jeremy Allison3-4/+82
Jeremy. (This used to be commit 2243a73d650319208aebbbaf65dfba2a508a7c10)
2007-10-10r25116: Fix talloc_asprintf_append to do the right thing withJeremy Allison1-5/+2
truncated strings. Jeremy. (This used to be commit 93c42fd9b52d9135d8c8b52e97cf342c1c5b5010)
2007-10-10r24627: merge from SAMBA_4_0:Stefan Metzmacher1-2/+12
as TALLOC_ABORT() is defined to abort() by default wrap it into a function so that the function name in the backtrace shows what happens. metze (This used to be commit ddbe971030070ab1b9fc37b8b0ac44a3d9303fe4)
2007-10-10r23802: fixed URL in XMLAndrew Tridgell1-1/+1
(This used to be commit 256301a21a1f393b5a2b89d4dce47b7d4f7bf9be)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell1-2/+1
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23799: updated old Franklin Street FSF addresses to new URLAndrew Tridgell2-6/+2
(This used to be commit 43cd589773148fe3d243892768ce187604dd0c33)
2007-10-10r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell3-6/+3
(This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76)
2007-10-10r23790: LGPLv3+ conversion for our LGPLv2+ library codeAndrew Tridgell3-3/+3
(This used to be commit 1b78cace504f60c0f525765fbf59d9cc6506cd4d)
2007-10-10r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison3-3/+3
Jeremy. (This used to be commit c2f7ab1c175ecff0cf44d0bbc4763ba9f7d7803f)
2007-10-10r22759: sync lib/talloc with samba4Stefan Metzmacher8-16/+103
metze (This used to be commit 86c510e3198e03ed6efa61b27530bbb008f6802b)
2007-10-10r22564: Move the _strict -> _zeronull functions into lib/util.cJeremy Allison2-105/+0
and out of talloc at tridge's request. Jeremy. (This used to be commit da78488b86c464b6861d36398cca7524ad5906fe)
2007-10-10r22541: Added talloc_size_strict macro.Jeremy Allison1-0/+1
Jeremy. (This used to be commit fcbfa2c99175780524d2258885410c79bbb12d6e)
2007-10-10r22540: Added _strict varients of the macro calls - addedJeremy Allison1-0/+6
prototypes. Jeremy. (This used to be commit 06b47f3d72d0ca1c83842dff3425d8dacd283fff)
2007-10-10r22539: Added _strict varients of the talloc calls toJeremy Allison2-1/+96
return NULL on size == 0 varients. Jeremy. (This used to be commit 1283da1bf8ebe458cf84ee4a703909945cdfcd88)
2007-10-10r22366: sync lib/talloc/ with samba4Stefan Metzmacher4-8/+22
metze (This used to be commit 7fab12b34a818f029f4285a59d6e49768b7f8e79)
2007-10-10r22268: merge from samba4:Stefan Metzmacher1-4/+6
protect #define __location__ with an #ifndef metze (This used to be commit 4c93c05542c5a238b1b7a5cd9b75f9f852c0ad4d)
2007-10-10r21176: merged va_end() changes from Samba4Andrew Tridgell1-6/+11
(This used to be commit 04f6f01dfeda2fa076209a94cdf8e59f6ce47008)
2007-10-10r20197: merge talloc fixes from samba4:Stefan Metzmacher2-20/+18
- make most static functions inline - handle NULL pointers in talloc_parent_chunk() - use talloc_parent_chunk() in talloc_parent_name() to fix a bug found by the IBM checker metze (This used to be commit c718eb7a7c3cdc4acb25f303a73a3ca478c27af0)
2007-10-10r20131: get rid of a few no previous prototype warningsHerb Lewis1-0/+1
(This used to be commit e710a7d39a662a1a339f3f71c4b051fde1bb5a16)
2007-10-10r19774: Fix typoVolker Lendecke1-1/+1
(This used to be commit 842599a7fd1217b498dc2d241d39ed604cf0da7d)
2007-10-10r19666: Talloc_guide text on multithreading by Remi TurboultVolker Lendecke1-0/+16
(This used to be commit 36a7bf738afd466e378fb2f09d1ce0b47ec924a4)
2007-10-10r19431: merge recent talloc performance improvements from Samba4Andrew Tridgell3-594/+660
(This used to be commit ced12bd6d8c95a103cb2c84166a64f9a21bd32ad)
2007-10-10r19125: merge from samba4Andrew Tridgell1-19/+19
(This used to be commit 65e1500ae6b5ca6334a63f4a18272568202bc048)
2007-10-10r18996: merge from samba4:Stefan Metzmacher2-12/+37
- fix bug 4078 - talloc_free(talloc_autofree_context()); should not result in a SIGABORT on exit - add a test for this, but this test can also pass in the standalone build and samba3, as samba4 uses talloc_autofree_context() metze (This used to be commit f5b0924f975f58bba3c13a53388ea25af51d3bc8)
2007-10-10r18952: fix compiler warning (merge from samba4)Stefan Metzmacher1-1/+1
metze (This used to be commit 4cd59d47c8d21685cfab45f4bcfc005c5d7cf79e)
2007-10-10r18810: use a copy of samba4's talloc under lib/talloc/Stefan Metzmacher16-0/+7403
to make mergeing easier. metze (This used to be commit d49ffbc19b29f7620e427de133ffab74721f37e8)