aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem
AgeCommit message (Expand)AuthorFilesLines
2013-01-23Convert the strict allocator to use a hash table similarly to the simpleEvan Huus1-49/+138
2013-01-23Handle NULL-pointers and 0-lengths in a much simpler allocator-agnostic way,Evan Huus2-32/+37
2013-01-23Add wrapper functions for realloc, free and gc, but don't expose them in theEvan Huus1-0/+18
2013-01-22More fixes for handling of NULL-pointers and 0-lengths in calls toEvan Huus1-9/+18
2013-01-20NULL is also a valid return for g_malloc if the requested size is 0.Evan Huus1-2/+6
2013-01-20Don't add the new block to the hash table if it is NULL, which is aEvan Huus1-1/+5
2013-01-19Rewrite wmem_allocator_simple to track allocations using a GHashTable instead ofEvan Huus1-27/+71
2013-01-19Add three more slots to the wmem allocater definition (not yet implementedEvan Huus4-6/+27
2013-01-15Add missing header #include as the slab is part of the API even if nobodyEvan Huus1-0/+1
2013-01-15Use the block allocator for wmem's file-scope by default.Evan Huus1-1/+1
2013-01-04Add convenience macros wmem_new and wmem_new0Evan Huus1-1/+3
2012-12-29Add a cast to pacify MSVC.Evan Huus1-1/+2
2012-12-29Implement wmem_strbuf_append_printf.Evan Huus2-7/+39
2012-12-28Add a strict allocator that does canaries and various other things, forEvan Huus5-1/+249
2012-12-27Make the alignment amount for the wmem block allocator into a #defineEvan Huus1-4/+12
2012-12-27Pre-declare just the enum, and not the typedef to avoid redefinition warnings.Evan Huus1-3/+3
2012-12-27Change the format of the environment variable slightly to allow overridingEvan Huus1-7/+19
2012-12-27Store the type of each wmem allocator.Evan Huus2-4/+17
2012-12-26Fix a bunch of warnings.Guy Harris1-1/+1
2012-12-19See if *this* squelches the MSVC errors.Guy Harris1-3/+4
2012-12-19Implement a basic singly-linked for wmem.Evan Huus6-56/+240
2012-12-19Try to fix windows builds - MSVC doesn't like g_assert_not_reached() ?Evan Huus1-0/+3
2012-12-19Make the wmem string-buffer marginally useful but providing some accessors soEvan Huus2-0/+18
2012-12-19Dispatch all allocator creations through a single function using an enum toEvan Huus3-14/+38
2012-12-18Rename allocator_glib to allocator_simple, since the block allocator alsoEvan Huus5-33/+32
2012-12-18Use 'new' instead of 'create' a consistent manner.Evan Huus9-17/+17
2012-12-15Basic wmem string-buffer. Not yet feature-equivalent to the emem version.Evan Huus4-0/+227
2012-12-08Put in a cast to silence a stupid MSVC warning.Evan Huus1-1/+4
2012-12-08Make sure the wmem block allocator returns aligned memory.Evan Huus1-0/+17
2012-11-25Add strdup_printf and strdup_vprintf to the wmem string utilities.Evan Huus2-0/+40
2012-11-25Allocate wmem memory in blocks of 8MB, not 10, because powers of two are nice.Evan Huus1-2/+2
2012-11-24Make the wmem scopes friendly to the valgrind script like emem is.Evan Huus1-1/+9
2012-11-24Reorder the wmem scopes to be ordered by lifetime, which makes more sense thanEvan Huus1-16/+16
2012-11-24Add a simple block allocator to wmem (no canaries or anything yet) and use itEvan Huus4-1/+246
2012-11-09Enter and leave wmem's file scope appropriately.Evan Huus1-1/+13
2012-11-08Use const in wmem where possible.Evan Huus10-14/+14
2012-11-03Wmem stack implementation using the wmem slab implementation to allocate frames.Evan Huus4-0/+192
2012-11-03Add wmem scopes for packet and file lifetimes. The file lifetime scope isn'tEvan Huus6-13/+269
2012-11-03Rename wmem_permanent_scope -> wmem_epan_scope to reflect the fact that itEvan Huus2-6/+6
2012-10-27Experimental slab allocator logic for wmem.Evan Huus4-2/+189
2012-10-27Create init and cleanup functions for wmem as a whole.Evan Huus2-0/+30
2012-10-27Make the allocator destructor part of wmem_allocator_t. This avoids twoEvan Huus5-11/+20
2012-10-24Don't use g_slist_free_full() it needs a more recent GLIB than we officiallyEvan Huus1-2/+11
2012-10-24wmem_allocator_t is defined in wmem_core.h; redefining it elsewhere willGuy Harris1-2/+0
2012-10-24Include wmem_core.h to define the wmem_allocator_t typedef.Guy Harris1-0/+1
2012-10-24We're no longer defining the structure in a typedef definition, so weGuy Harris1-1/+1
2012-10-24Make it a little more like the Makefile.am for the ftypes subdirectory. Guy Harris1-6/+4
2012-10-24Have wmem_core.h define the wmem_allocator_t typedef, with an incompleteGuy Harris2-1/+3
2012-10-24Fix autotools build - missed a few spots that needed updating for wmem.Evan Huus1-1/+1
2012-10-24Basic skeleton for wmem.Evan Huus11-0/+692