Double linked list was required by jumbo allocation.
No support for jumbo -> no need for double linked list -> have only 'next' pointer in header.
Change-Id: I48a0f468ebba9db3a63548d8e7307b6424c759ed
Reviewed-on: https://code.wireshark.org/review/1495
Reviewed-by: Evan Huus <eapache@gmail.com>
/* The header for an entire OS-level 'block' of memory */
typedef struct _wmem_block_fast_hdr {
- struct _wmem_block_fast_hdr *prev, *next;
+ struct _wmem_block_fast_hdr *next;
gint32 pos;
} wmem_block_fast_hdr_t;
wmem_block_fast_add_to_block_list(wmem_block_fast_allocator_t *allocator,
wmem_block_fast_hdr_t *block)
{
- block->prev = NULL;
block->next = allocator->block_list;
- if (block->next)
- block->next->prev = block;
allocator->block_list = block;
}