]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fixes 282230 group allocator for small fixed size, use it for MC_Chunk/SEc vbit
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 17 Jan 2012 21:16:30 +0000 (21:16 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 17 Jan 2012 21:16:30 +0000 (21:16 +0000)
commitbe97cddd7a99fb359caa50c0118fc31fc87bc9f3
treed9b5cde93ca593e5f4fc60a9b908ad87dd930036
parent93e3df9e39275d4abb5a36a7b3af4db3f1c2aa9a
Fixes 282230  group allocator for small fixed size, use it for MC_Chunk/SEc vbit

* new files include/pub_tool_groupalloc.h and coregrind/m_groupalloc.c
  implementing a group allocator (based on helgrind group alloc).
* include/Makefile.am coregrind/Makefile.am : added pub_tool_groupalloc.h
  and m_groupalloc.c
* helgrind/libhb_core.c : use pub_tool_groupalloc.h/m_groupalloc.c
  instead  of the local implementation.
* include/pub_tool_oset.h coregrind/m_oset.c : new function
  allowing to create an oset that will use a pool allocator.
  new function allowing to clone an oset (so as to share the pool alloc)
* memcheck/tests/unit_oset.c drd/tests/unit_bitmap.c : modified
  so that it compiles with the new m_oset.c
* memcheck/mc_main.c : use group alloc for MC_Chunk
  memcheck/mc_include.h : declare the MC_Chunk group alloc
* memcheck/mc_main.c : use group alloc for the nodes of the secVBitTable OSet
* include/pub_tool_hashtable.h coregrind/m_hashtable.c : pass the free node
  function in the VG_(HT_destruct).
  (needed as the hashtable user can allocate a node with its own alloc,
  the hash table destroy must be able to free the nodes with the user
  own free).
* coregrind/m_gdbserver/m_gdbserver.c : pass free function to VG_(HT_destruct)
* memcheck/mc_replace_strmem.c memcheck/mc_machine.c
  memcheck/mc_malloc_wrappers.c memcheck/mc_leakcheck.c
  memcheck/mc_errors.c memcheck/mc_translate.c : new include needed
  due to group alloc.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12341
22 files changed:
NEWS
coregrind/Makefile.am
coregrind/m_gdbserver/m_gdbserver.c
coregrind/m_hashtable.c
coregrind/m_oset.c
coregrind/m_poolalloc.c [new file with mode: 0644]
drd/tests/unit_bitmap.c
helgrind/libhb_core.c
include/Makefile.am
include/pub_tool_hashtable.h
include/pub_tool_oset.h
include/pub_tool_poolalloc.h [new file with mode: 0644]
memcheck/mc_errors.c
memcheck/mc_include.h
memcheck/mc_leakcheck.c
memcheck/mc_machine.c
memcheck/mc_main.c
memcheck/mc_malloc_wrappers.c
memcheck/mc_replace_strmem.c
memcheck/mc_translate.c
memcheck/tests/unit_oset.c
memcheck/tests/unit_oset.stdout.exp