Wireshark mailing list archives
Re: RFD: Limiting scope of ep_ memory
From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Thu, 25 Oct 2012 14:20:19 -0400
Evan Huus wrote:
On Mon, Oct 22, 2012 at 12:21 PM, Anders Broman <anders.broman () ericsson com> wrote:- I think the whole ep/se memory idea is optimizing for execution speed and as a bonus fewer memory leaks Does this assumption still hold true e.g. ep_ is faster that g_malloc? (Changing back would be a nightmare I suppose). But it seems like having ep memory is geting quite complicated.I think reducing memory leaks is the primary goal, and execution speed was a bonus. I agree that it's getting overly complicated though, see my email from last week [1] for some thoughts on where I'd like to go long-term.
That's what my recollection says too: because even very simple dissector code like:
foo = g_malloc() tvb_get_XXX() g_free(foo); Leaks memory when exceptions are thrown. The addition of canaries to detect buffer overruns, etc. was another bonus. Ah, yes, the wiki page: http://wiki.wireshark.org/EMEMification also lists fixing memory leaks as the primary reason. ___________________________________________________________________________ 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:
- Re: RFD: Limiting scope of ep_ memory, (continued)
- Re: RFD: Limiting scope of ep_ memory Martin Mathieson (Oct 14)
- Re: RFD: Limiting scope of ep_ memory Anders Broman (Oct 16)
- Re: RFD: Limiting scope of ep_ memory Jakub Zawadzki (Oct 22)
- Re: RFD: Limiting scope of ep_ memory Jakub Zawadzki (Oct 22)
- Re: RFD: Limiting scope of ep_ memory Anders Broman (Oct 22)
- Re: RFD: Limiting scope of ep_ memory Evan Huus (Oct 22)
- Re: RFD: Limiting scope of ep_ memory Jakub Zawadzki (Oct 22)
- Re: RFD: Limiting scope of ep_ memory Jakub Zawadzki (Oct 22)
- Re: RFD: Limiting scope of ep_ memory Evan Huus (Oct 22)
- Re: RFD: Limiting scope of ep_ memory Evan Huus (Oct 23)
- Re: RFD: Limiting scope of ep_ memory Jeff Morriss (Oct 25)
- Re: RFD: Limiting scope of ep_ memory Evan Huus (Oct 22)
- Re: RFD: Limiting scope of ep_ memory Jakub Zawadzki (Oct 22)