Wireshark-dev: Re: [Wireshark-dev] New packet list - out of memory?
From: didier <[email protected]>
Date: Wed, 07 Oct 2009 03:30:49 +0200
Le mardi 06 octobre 2009 à 12:21 -0400, Jeff Morriss a écrit :

> Another question: do we really need to use se_ allocations here?  Do we 
> need the canaries or are we just using se_ allocations because they get 
> cleaned up for us "automatically?"
PacketListRecord size is 20 bytes (could be 16) and we are allocating a
lot of them so yes using g_slice_new or g_malloc here make sense.

Using a g_string_chunk for frame data col_text too but it's not a
problem here loading a file doesn't initialize a lot of them.

Didier
 
> 
> Should we have a new allocator without the canaries?