mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-15 06:47:14 +01:00
Don't make ABI depend on G_ENABLE_DEBUG, just add an empty
2007-01-30 Matthias Clasen <mclasen@redhat.com> * glib/glib.symbols: * glib/gslice.h: * glib/gslice.c: Don't make ABI depend on G_ENABLE_DEBUG, just add an empty g_slice_debug_tree_statistics () implementation in the !G_ENABLE_DEBUG case. svn path=/trunk/; revision=5318
This commit is contained in:
parent
df3dd538e5
commit
6a6d92a218
@ -1,3 +1,11 @@
|
||||
2007-01-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/glib.symbols:
|
||||
* glib/gslice.h:
|
||||
* glib/gslice.c: Don't make ABI depend on G_ENABLE_DEBUG,
|
||||
just add an empty g_slice_debug_tree_statistics () implementation
|
||||
in the !G_ENABLE_DEBUG case.
|
||||
|
||||
2007-01-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Define G_GNUC_INTERNAL for Sun Studio
|
||||
|
@ -686,11 +686,9 @@ g_slice_free_chain_with_offset
|
||||
g_slice_set_config
|
||||
g_slice_get_config
|
||||
g_slice_get_config_state
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
g_slice_debug_tree_statistics
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if IN_HEADER(__G_MESSAGES_H__)
|
||||
#if IN_FILE(__G_MESSAGES_C__)
|
||||
|
@ -1379,10 +1379,10 @@ smc_tree_remove (SmcKType key)
|
||||
return found_one;
|
||||
}
|
||||
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
void
|
||||
g_slice_debug_tree_statistics (void)
|
||||
{
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
g_mutex_lock (smc_tree_mutex);
|
||||
if (smc_tree_root)
|
||||
{
|
||||
@ -1438,8 +1438,8 @@ g_slice_debug_tree_statistics (void)
|
||||
* GSlice: MemChecker: 504.900474 branches per trunk, 98.81% utilization
|
||||
* GSlice: MemChecker: 4.965039 entries per branch, 1 minimum, 37 maximum
|
||||
*/
|
||||
}
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
}
|
||||
|
||||
#define __G_SLICE_C__
|
||||
#include "galiasdef.c"
|
||||
|
@ -71,9 +71,7 @@ typedef enum {
|
||||
void g_slice_set_config (GSliceConfig ckey, gint64 value);
|
||||
gint64 g_slice_get_config (GSliceConfig ckey);
|
||||
gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
void g_slice_debug_tree_statistics (void);
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user