aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem
AgeCommit message (Expand)AuthorFilesLines
2013-10-15Don't do canaries in blocks of guint32, it appears to cause alignment issuesEvan Huus1-9/+9
2013-10-13Subsume README.binarytrees into wmem doxygen. The README was out of dateEvan Huus1-14/+59
2013-09-28Don't assert that the key to a wmem tree operation is short. If XMPP wants toEvan Huus1-4/+0
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 Huus8-40/+45
2013-09-01Do our list manipulation entirely after the realloc, so that if the reallocEvan Huus1-3/+10
2013-08-31In the strict allocator, do canaries in units of guint32 instead of guint8. ThisEvan Huus1-19/+22
2013-08-14Include config.h first; it defines _FILE_OFFSET_BITS, and if some systemGuy Harris7-12/+15
2013-08-13As suggested in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9033Evan Huus1-11/+1
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 Huus2-16/+110
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-10Fix (-W)documentation error found by ClangAlexis La Goutte1-7/+3
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-31Add wmem_tree_is_empty(). Also permit lookups on a NULL tree for compatibilityEvan Huus3-1/+16
2013-07-29More little optimizations.Evan Huus1-5/+3
2013-07-29Another little optimization.Evan Huus1-18/+11
2013-07-28Added more build artefacts to the clean targetGraham Bloice1-1/+1
2013-07-28Don't force the allocator choice in the data-structure tests, we want to be ableEvan Huus1-10/+10
2013-07-28Fix a bug in the gc routine discovered while formally working out parts of theEvan Huus2-11/+29
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-27Use a #define, tweak a comment.Evan Huus1-2/+2
2013-07-26whitespaceEvan Huus1-2/+2
2013-07-21Add wmem queue 'implementation' by wrapping wmem_list and wmem_stack.Evan Huus6-9/+116
2013-07-20Replace wmem slist (singly-linked) with wmem list (doubly-linked).Evan Huus8-232/+271
2013-07-15Fix warnings: format '%blah' expects argument of type 'foo', but argument 'i'...Chris Maynard1-3/+5
2013-07-06Add wmem_array_sort() which just hands off to the standard library's qsort().Evan Huus3-1/+42
2013-07-06In some versions of some OSes, even <string.h> declares index() underGuy Harris2-4/+4
2013-07-06Trivial code style: use wmem_new in a few places, and remove extraneousEvan Huus2-3/+3
2013-07-06Simple growable array implementation for wmem.Evan Huus5-0/+300
2013-06-27*sigh*Evan Huus1-3/+5
2013-06-27Misc little cleanups to wmem tree (comments, whitespace, assertions)Evan Huus1-9/+4
2013-06-27Remove debugging lines from wmem_test, I think I've figured out the problem.Evan Huus1-26/+0
2013-06-25Arrays seems to be where the failure is, so remove excess verbiage around otherEvan Huus1-47/+19