Wireshark mailing list archives

Re: New packet list - out of memory?


From: didier <dgautheron () magic fr>
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?


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: