diff options
author | Tim Janik <timj@imendio.com> | 2005-12-20 17:35:02 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2005-12-20 17:35:02 +0000 |
commit | 3f9d65375e46a49e3be7bf1ca7533b3a9ac310b4 (patch) | |
tree | b72c6b38ce800c2b7555931f90c1e61f4386fd50 /ChangeLog.pre-2-12 | |
parent | 86f1c798b27fcfd9e1c4edc9632dc288e6a1f32c (diff) | |
download | glib-3f9d65375e46a49e3be7bf1ca7533b3a9ac310b4.tar.gz |
added mem_error() and mem_assert() to test and handle errors without
Tue Dec 20 18:14:14 2005 Tim Janik <timj@imendio.com>
* glib/gslice.[hc]: added mem_error() and mem_assert() to test and
handle errors without depending on gmessage.c which might not be
setup when the error occours.
removed G_SLICE_CONFIG_ALWAYS_FREE config option, fixed the code so
always freeing can be achieved by adjusting the working set time to
0 with G_SLICE_CONFIG_WORKING_SET_MSECS.
added G_SLICE_CONFIG_COLOR_INCREMENT to test different color increments
(mainly 0 and 1). reduced the minimum block size to 128 bytes, to
minimize wastage if small amounts of differently sized structrues are
allocated, this does come at a performance cost of roughly 5% though.
fixed up block alignment calculation, so it works for varying
block sizes. only use strerror() not g_strerror() since the latter
depends on working GQuark and GSlice.
mem_error(): implemented in terms of fprintf and vfprintf.
* tests/slice-color.c: new program to test cache colorization effects.
* tests/slice-test.c: trade G_SLICE_CONFIG_ALWAYS_FREE for 0 duration
G_SLICE_CONFIG_WORKING_SET_MSECS.
Diffstat (limited to 'ChangeLog.pre-2-12')
-rw-r--r-- | ChangeLog.pre-2-12 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 0805b476b..a17931884 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,25 @@ +Tue Dec 20 18:14:14 2005 Tim Janik <timj@imendio.com> + + * glib/gslice.[hc]: added mem_error() and mem_assert() to test and + handle errors without depending on gmessage.c which might not be + setup when the error occours. + removed G_SLICE_CONFIG_ALWAYS_FREE config option, fixed the code so + always freeing can be achieved by adjusting the working set time to + 0 with G_SLICE_CONFIG_WORKING_SET_MSECS. + added G_SLICE_CONFIG_COLOR_INCREMENT to test different color increments + (mainly 0 and 1). reduced the minimum block size to 128 bytes, to + minimize wastage if small amounts of differently sized structrues are + allocated, this does come at a performance cost of roughly 5% though. + fixed up block alignment calculation, so it works for varying + block sizes. only use strerror() not g_strerror() since the latter + depends on working GQuark and GSlice. + mem_error(): implemented in terms of fprintf and vfprintf. + + * tests/slice-color.c: new program to test cache colorization effects. + + * tests/slice-test.c: trade G_SLICE_CONFIG_ALWAYS_FREE for 0 duration + G_SLICE_CONFIG_WORKING_SET_MSECS. + 2005-12-17 Matthias Clasen <mclasen@redhat.com> * glib/goption.c (parse_short_option): Set an error in all |