From 8c6b0ab3f7e437362112eeaf83a566475b85d27c Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 20 Sep 2007 00:13:35 -0400 Subject: Add support for compacting DBusStrings to release wasted memory. 2007-09-19 Ryan Lortie * dbus/dbus-string.[ch] (compact, _dbus_string_compact, _dbus_string_lock): new compact function to free up allocated memory that is no longer used. * dbus/dbus-message.c (load_message): call _dbus_string_compact on the message loader buffer. * dbus/dbus-transport-socket.c (do_reading, do_writing): call _dbus_string_compact on the incoming/outgoing "encoded" buffers. * dbus/dbus-string-util.c (_dbus_string_test): add a few tests for string compacting. --- ChangeLog | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 1c9168fa..32c6436e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,20 @@ +2007-09-19 Ryan Lortie + + Add support for compacting DBusStrings to release wasted memory. + + * dbus/dbus-string.[ch] (compact, _dbus_string_compact, + _dbus_string_lock): new compact function to free up allocated memory + that is no longer used. + + * dbus/dbus-message.c (load_message): call _dbus_string_compact on the + message loader buffer. + + * dbus/dbus-transport-socket.c (do_reading, do_writing): call + _dbus_string_compact on the incoming/outgoing "encoded" buffers. + + * dbus/dbus-string-util.c (_dbus_string_test): add a few tests for + string compacting. + 2007-09-13 Ryan Lortie * HACKING: add more explicit git branch/tag instructions @@ -625,7 +642,7 @@ 2007-06-14 Havoc Pennington * bus/dispatch.c (check_get_connection_unix_process_id): mop up - getpid() (noticed by Peter KKümmel) and adapt the test to + getpid() (noticed by Peter Kümmel) and adapt the test to expect a "pid unknown" error when running on Windows. 2007-06-14 Havoc Pennington @@ -688,7 +705,7 @@ 2007-06-14 Simon McVittie * doc/dbus-specification.xml: say the protocol version is 1 instead of - 0 (patch from Kristoffer Lundén, fd.o#10033) and remove the FIXME + 0 (patch from Kristoffer Lundén, fd.o#10033) and remove the FIXME about removing protocol version from messages (as per Havoc's comment on that bug) @@ -1413,7 +1430,7 @@ 2006-12-12 John (J5) Palmieri * bus/signal.c: Fix match_rule_equal errata - (CVE-2006-6107 - Patch from Kimmo Hämäläinen + (CVE-2006-6107 - Patch from Kimmo Hämäläinen ) 2006-11-19 Thiago Macieira -- cgit