mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 08:56:16 +01:00
Move the G_ENABLE_DEBUG ifdef inside g_slice_debug_tree_statistics() so
2007-08-06 Tor Lillqvist <tml@novell.com> * glib/gslice.c: Move the G_ENABLE_DEBUG ifdef inside g_slice_debug_tree_statistics() so that the function exists (but doesn't do anything) also in a non-debug build. (#440544) svn path=/trunk/; revision=5679
This commit is contained in:
parent
6d82760937
commit
faaaa24885
@ -1,3 +1,9 @@
|
|||||||
|
2007-08-06 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* glib/gslice.c: Move the G_ENABLE_DEBUG ifdef inside
|
||||||
|
g_slice_debug_tree_statistics() so that the function exists (but
|
||||||
|
doesn't do anything) also in a non-debug build. (#440544)
|
||||||
|
|
||||||
2007-08-03 Matthias Clasen <mclasen@redhat.com>
|
2007-08-03 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* configure.in: Bump version
|
* configure.in: Bump version
|
||||||
|
@ -1410,10 +1410,10 @@ smc_tree_remove (SmcKType key)
|
|||||||
return found_one;
|
return found_one;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef G_ENABLE_DEBUG
|
|
||||||
void
|
void
|
||||||
g_slice_debug_tree_statistics (void)
|
g_slice_debug_tree_statistics (void)
|
||||||
{
|
{
|
||||||
|
#ifdef G_ENABLE_DEBUG
|
||||||
g_mutex_lock (smc_tree_mutex);
|
g_mutex_lock (smc_tree_mutex);
|
||||||
if (smc_tree_root)
|
if (smc_tree_root)
|
||||||
{
|
{
|
||||||
@ -1469,8 +1469,8 @@ g_slice_debug_tree_statistics (void)
|
|||||||
* GSlice: MemChecker: 504.900474 branches per trunk, 98.81% utilization
|
* GSlice: MemChecker: 504.900474 branches per trunk, 98.81% utilization
|
||||||
* GSlice: MemChecker: 4.965039 entries per branch, 1 minimum, 37 maximum
|
* GSlice: MemChecker: 4.965039 entries per branch, 1 minimum, 37 maximum
|
||||||
*/
|
*/
|
||||||
}
|
|
||||||
#endif /* G_ENABLE_DEBUG */
|
#endif /* G_ENABLE_DEBUG */
|
||||||
|
}
|
||||||
|
|
||||||
#define __G_SLICE_C__
|
#define __G_SLICE_C__
|
||||||
#include "galiasdef.c"
|
#include "galiasdef.c"
|
||||||
|
Loading…
Reference in New Issue
Block a user