summaryrefslogtreecommitdiff
path: root/epan/wmem/wmem_allocator_block.c
AgeCommit message (Expand)AuthorFilesLines
2016-05-13Have wmem conform to checkAPIs.plMichael Mann1-3/+3
2015-07-17wmem: don't remove tiny blocks from the recyclerEvan Huus1-1/+1
2014-03-04Fix memory-alignment in the block allocator.Evan Huus1-2/+2
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
2014-03-04Remove assertions from block allocator.Evan Huus1-30/+0
2013-12-20Fix [-Wmissing-prototypes]Anders Broman1-0/+1
2013-09-08Cycle the recycler in realloc() and free() as well, reducing memory usage of theEvan Huus1-3/+17
2013-09-01Send all alloc and free calls within wmem through wmem_alloc and wmem_free withEvan Huus1-8/+8
2013-09-01Do our list manipulation entirely after the realloc, so that if the reallocEvan Huus1-3/+10
2013-08-12Be sure to initialize the jumbo flag when creating a new chunk header byEvan Huus1-8/+15
2013-08-11Reorder and group chunk header flags. Reduces the bit-twiddling needed by theEvan Huus1-3/+5
2013-08-11Split jumbo_free and jumbo_realloc into their own functions for readability andEvan Huus1-13/+45
2013-08-11Move the null check outside the function call. Simpler, and more efficient forEvan Huus1-5/+3
2013-08-11Little optimization: move two statements inside an if block.Evan Huus1-3/+3
2013-08-11Add support for allocating more than will fit in a single block, through the useEvan Huus1-15/+94
2013-08-11Instead of using a glib slist to track the list of blocks, embed a shortEvan Huus1-51/+84
2013-08-11Small optimization: the master-list and recycler cases are different enough thatEvan Huus1-14/+22
2013-08-09Enhance verification to assert that the recycler and master list contain allEvan Huus1-12/+34
2013-08-08One more chunk header alignment fix.Evan Huus1-2/+2
2013-08-08Make sure our chunk headers are large enough to correctly align the actual dataEvan Huus1-7/+9
2013-08-08When splitting a free chunk, if we don't have room for a free header don't evenEvan Huus1-42/+29
2013-08-02Combine two ternary ?: into a single if. Shaves about 1.5% off the fast timingEvan Huus1-2/+8
2013-08-02Small simplificationEvan Huus1-3/+2
2013-08-02Remove unnecessary null check.Evan Huus1-4/+0
2013-08-02Rewrite the merge_free routine to keep the merged chunk on the master free listEvan Huus1-75/+80
2013-07-29More little optimizations.Evan Huus1-5/+3
2013-07-29Another little optimization.Evan Huus1-18/+11
2013-07-28Fix a bug in the gc routine discovered while formally working out parts of theEvan Huus1-11/+19
2013-07-28Little optimizations.Evan Huus1-6/+5
2013-07-27Little things make big differences: somehow while I was experimenting thisEvan Huus1-1/+3
2013-07-27Small optimization: conjoin two mutually exclusive ifs with an else.Evan Huus1-3/+4
2013-07-27Simplify out an addition that happened a lot by performing it once on theEvan Huus1-10/+8
2013-07-27Redesign of the wmem block allocator.Evan Huus1-298/+371
2013-07-26whitespaceEvan Huus1-2/+2
2013-05-22Minor refactor: make the framework responsible for allocating and freeing theEvan Huus1-17/+8
2013-03-27Copy over a missing flag in the block allocator to fix the build-bot failureEvan Huus1-1/+7
2013-03-27Fix -Wshadow that happens with some old versions of gcc (not mine, for someEvan Huus1-9/+9
2013-03-27Greatly improve wmem tests, including random fuzz-style testing. ImproveEvan Huus1-13/+26
2013-03-24Fix a few small bugs in the block allocator and add some more assertions to itEvan Huus1-9/+24
2013-03-24Initial simple block allocator tests, not being run by default because they'reEvan Huus1-23/+31
2013-03-20 From beroset:Bill Meier1-8/+8
2013-03-20Trivial tweaks to clean up cppcheck warnings.Evan Huus1-2/+2
2013-03-20More block allocator fixes and cleanup. Most of the issues seem to have beenEvan Huus1-8/+44
2013-03-19Add more and stricter wmem block allocator debug functions.Evan Huus1-15/+38
2013-03-11Minor improvements to block allocator debugging.Evan Huus1-4/+5
2013-03-10Glib docs recommend using the slice API if you know you won't need to realloc.Evan Huus1-4/+4
2013-03-08Add a debug function (ifdef'ed out by default) and fix another two bugs found byEvan Huus1-1/+56
2013-03-08Add another pair of assertions.Evan Huus1-0/+2
2013-03-08Should fix assertion failure seen by Anders on -dev.Evan Huus1-1/+17
2013-02-26Fix spelling/typos found using a list of commonly misspelled words.Bill Meier1-2/+2