Wireshark-dev: Re: [Wireshark-dev] RFD: Slab allocator (sl_alloc()) related to r37112
From: Jeff Morriss <[email protected]>
Date: Fri, 13 May 2011 15:41:54 -0400
Gerald Combs wrote:
On 5/13/11 3:00 AM, Jakub Zawadzki wrote:
I wanted to cleanup code like:
#if GLIB_CHECK_VERSION(2,10,0)
	ptr  = g_slice_new(...);
#else
	ptr = g_mem_chunk_alloc(...);
#endif
with single:
    ptr = sl_alloc(...);
sl_ allocator already passed multiple fuzz testing so it should be stable.
Are many people still running GLib versions older than 2.10, or GTK+
versions older than 2.12? If not, we should probably bump the minimum
GLib and GTK+ versions after the Wireshark 1.6 branch is created. This
would let us clean up quite a bit of code in the trunk.
The one thing I know that we'd lose support for is vanilla Solaris 10 
(it comes with glib-2.4 and gtk-2.4.9).  I've got dozens of systems 
running Wireshark like that, but I also know that my days of doing so 
are numbered.