Wireshark-commits: [Wireshark-commits] master 5f23901: wmem: add new simple block allocator, use it
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5f239013e744de640cd37462e067a495912b9e65
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
5f23901 by Jakub Zawadzki (darkjames@xxxxxxxxxxxx):
wmem: add new simple block allocator, use it in packet-scope.
For packet-scope allocation, there's no need to support realloc(), free()
cause memory will be garbage collected after packet dissection.
(and this allocator is much faster than full block allocator).
Change-Id: I73fdf708c3077f48f55bdcc71f4fa859e4ac2335
Reviewed-on: https://code.wireshark.org/review/1428
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
Actions performed:
from fa84054 Enhance display of SPDY packet (Remove some information from column)
adds 5f23901 wmem: add new simple block allocator, use it in packet-scope.
Summary of changes:
epan/CMakeLists.txt | 1 +
epan/epan.c | 2 +-
epan/wmem/Makefile.common | 2 +
epan/wmem/wmem_allocator_block_fast.c | 243 ++++++++++++++++++++
...ocator_simple.h => wmem_allocator_block_fast.h} | 13 +-
epan/wmem/wmem_core.c | 7 +
epan/wmem/wmem_core.h | 13 +-
epan/wmem/wmem_scopes.c | 2 +-
epan/wmem/wmem_test.c | 91 +++++---
9 files changed, 331 insertions(+), 43 deletions(-)
create mode 100644 epan/wmem/wmem_allocator_block_fast.c
copy epan/wmem/{wmem_allocator_simple.h => wmem_allocator_block_fast.h} (79%)