93e615e7ab676b2f2a48c1a76ff57eac8f93688d |
|
31-Jan-2008 |
Michael Natterer <mitch@imendio.com> |
use %G_GSIZE_FORMAT instead of %lu since sizes have changed from gulong to 2008-01-31 Michael Natterer <mitch@imendio.com> * glib/gmem.c: use %G_GSIZE_FORMAT instead of %lu since sizes have changed from gulong to gsize in this file. svn path=/trunk/; revision=6432
/external/bluetooth/glib/glib/gmem.c
|
1fcaf2fe8d5118451e5d9da3347f711b623d504d |
|
29-Jan-2008 |
14:58:31 Tim Janik <timj@imendio.com> |
changed size argument type from gulong to gsize as discussed on 2008-01-29 14:58:31 Tim Janik <timj@imendio.com> * glib/gmem.[hc]: changed size argument type from gulong to gsize as discussed on gtk-devel-list: http://mail.gnome.org/archives/gtk-devel-list/2007-March/msg00062.html this should be ABI compatible on all platforms except win64 for which no ABI binding port exists yet. svn path=/trunk/; revision=6413
/external/bluetooth/glib/glib/gmem.c
|
f90d6d821d1e62c58655ff6a082b984fcfc9c605 |
|
26-Jan-2007 |
Matthias Clasen <mclasen@redhat.com> |
Make some structs which are used only once non-static. 2007-01-26 Matthias Clasen <mclasen@redhat.com> * gmem.c: * gslice.c: * gmessages.c: * gutils.c: Make some structs which are used only once non-static. svn path=/trunk/; revision=5316
/external/bluetooth/glib/glib/gmem.c
|
e4f8f3b95c2a3b4188a38378bd30b548dba505c2 |
|
10-May-2006 |
Sebastian Wilhelmi <wilhelmi@google.com> |
Renamed to glib/gthreadprivate.h and moved system thread identifier 2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com> * glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved system thread identifier comparision and assignment macros from glib/gthread.c to glib/gthreadprivate.h. * glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c, glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c, glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use glib/gthreadprivate.h instead of glib/gthreadinit.h. * gthread/gthread-impl.c: Use GSystemThread instead of GThread for owner determination. This fixes #311043 and is mostly modeled after the patch from jylefort@FreeBSD.org.
/external/bluetooth/glib/glib/gmem.c
|
acbbe9f88ebb2f86b1686687177c33e3a11e0127 |
|
20-Mar-2006 |
Matthias Clasen <matthiasc@src.gnome.org> |
Fix the build
/external/bluetooth/glib/glib/gmem.c
|
d0ee63840cd8c7760614810822370aee0382683f |
|
20-Mar-2006 |
Matthias Clasen <mclasen@redhat.com> |
use standard_calloc to allocate the profile_data. (#335209, Chris Wilson) 2006-03-20 Matthias Clasen <mclasen@redhat.com> * glib/gmem.c (profiler_log): use standard_calloc to allocate the profile_data. (#335209, Chris Wilson) * glib/gmain.c (g_main_context_unref): Avoid a deadlock. (#335207, Chris Wilson) Minor optimizations (#335216, Chris Wilson): * glib/gasyncqueue.c (g_async_queue_pop_intern_unlocked): Use g_queue_peek_tail_link instead of g_queue_peek_tail. * glib/glist.c: * glib/gslist.c: Avoid some memset calls.
/external/bluetooth/glib/glib/gmem.c
|
6c9179512db272e4d232a4b5c2aebdf344750fcc |
|
26-Jan-2006 |
Matthias Clasen <mclasen@redhat.com> |
Fix C99isms. (#328705, Kazuki Iwamoto) 2006-01-26 Matthias Clasen <mclasen@redhat.com> * glib/gmem.c (g_mem_init_nomessage): Fix C99isms. (#328705, Kazuki Iwamoto)
/external/bluetooth/glib/glib/gmem.c
|
eda944bca5d621ea3daec19abf6c7813b266927a |
|
25-Jan-2006 |
Tim Janik <timj@imendio.com> |
honour g_mem_gc_friendly settings when freeing slices, make sure Wed Jan 25 16:39:18 2006 Tim Janik <timj@imendio.com> * glib/gslice.c: honour g_mem_gc_friendly settings when freeing slices, make sure g_mem_gc_friendly is properly initialized. * gmem.[hc]: ensure g_mem_gc_friendly is initialized from G_DEBUG upon the first allocation. applied some branching optimizations. * docs/macros.txt: reflected --enable-gc-friendly change and described ENABLE_GC_FRIENDLY_DEFAULT as well as G_DEBUG=gc-friendly. * configure.in: changed --enable-gc-friendly=yes to define ENABLE_GC_FRIENDLY_DEFAULT. * glib/garray.c: changed ENABLE_GC_FRIENDLY macro #ifdef-s to if (G_UNLIKELY (g_mem_gc_friendly)). * glib/gtree.c: * glib/ghash.c: removed ENABLE_GC_FRIENDLY code which is now taken care of by g_slice_free1(). * tests/slice-test.c: fixed leaks, reported by Kjartan Maraas.
/external/bluetooth/glib/glib/gmem.c
|
63732bdf5ec0edc75a58c39fbbb9e98f8f65d001 |
|
16-Dec-2005 |
Matthias Clasen <mclasen@redhat.com> |
Don't return a pointer to a const struct, since apps expect to be able to 2005-12-16 Matthias Clasen <mclasen@redhat.com> * glib/gmem.c (g_allocator_new): Don't return a pointer to a const struct, since apps expect to be able to modify it. (#324179, J. Ali Harlow)
/external/bluetooth/glib/glib/gmem.c
|
733b1789c17ab4c6378ce0e9594f62dda1473ebb |
|
01-Dec-2005 |
Tim Janik <timj@imendio.com> |
new slice allocator implementation. Thu Dec 1 17:32:46 2005 Tim Janik <timj@imendio.com> * glib/gslice.[hc]: new slice allocator implementation. * tests/slice-test.c: added random slice allocation test. * glib/gthread.[hc]: removed newly added private thread mem API. * glib/gthreadinit.h: * glib/gmessages.c: * glib/gthread.c: * glib/gmem.c: divided glib threading initialisation into three phases, initialisation where private keys and messaging are not available (only needed by gmem.c), initialisation without messaging but private keys available (gslice.c, gmessage.c), and full fledged initialisers that server the rest of glib. initialisation functions got renamed to reflect the limitations of their corresponding phases. * glib/gmem.c: removed memchunk code, defer allocations to g_slice_* instead. * glib/gmem.[hc]: removed g_slice_* skeletons. * glib/glib.symbols: added g_slice_* symbols. * configure.in: check for availability of posix_memalign(3), memalign(3) and valloc(3). * glib/Makefile.am: added gslice.[hc].
/external/bluetooth/glib/glib/gmem.c
|
09b118f462fabb228ba26a498001f7c4e72bdde8 |
|
28-Nov-2005 |
Matthias Clasen <mclasen@redhat.com> |
Silence compiler warnings. 2005-11-28 Matthias Clasen <mclasen@redhat.com> * glib/gthread.c (g_static_rw_lock_wait, g_static_rw_lock_signal): * glib/gnode.c (g_node_depth_traverse_level): * glib/gmem.c (g_allocator_new): * glib/ghash.c (g_hash_table_unref, g_hash_table_destroy) (g_hash_table_foreach_remove_or_steal): Silence compiler warnings.
/external/bluetooth/glib/glib/gmem.c
|
7efd9fe3c80ed821c182b7ab9a033cb615090dce |
|
07-Nov-2005 |
Matthias Clasen <mclasen@redhat.com> |
We need to set n_preallocs to a nonzero value, otherwise GTK+ 2.8 breaks 2005-11-07 Matthias Clasen <mclasen@redhat.com> * glib/gmem.c (g_allocator_new): We need to set n_preallocs to a nonzero value, otherwise GTK+ 2.8 breaks when compiled against GLib 2.9. (#320755, Luca Ferretti)
/external/bluetooth/glib/glib/gmem.c
|
0cba1b531d5d28890fa4f48359d4e7adacf2a603 |
|
01-Nov-2005 |
Tim Janik <timj@imendio.com> |
prepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to Tue Nov 1 16:24:20 2005 Tim Janik <timj@imendio.com> * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to allocate and cache small bits of memory. an actuall allocator implementation for g_slice_*() is still pending. * glib/gthread.[hc]: changes from a patch by Matthias Clasen. changed GRealThread list to use in-structure *next; fields instead of GSList, in order for thread iteration to not depenend on g_slice_*() indirectly. _g_thread_mem_private_get(): _g_thread_mem_private_set(): added accessors for private memory, needed because the ordinary GPrivate implementation relies on GArray and GSList and therefore indirectly on working g_slice_*() allocations. * glib/gthread.[hc]: g_thread_foreach(): new public API function to loop over all existing threads. * glib/gdataset.c: * glib/gstring.c: * glib/gcache.c: * glib/garray.c: * glib/gqueue.c: * glib/gslist.c: * glib/glist.c: * glib/ghash.c: * glib/gtree.c: * glib/ghook.c: * glib/gmain.c: * glib/gnode.c: removed GAllocator and free list usages and accompanying locks. use g_slice_*() API to allocate and cache small bits of memory. * glib/ghook.h: removed GMemChunk field from public API. * glib/gslist.h: * glib/glist.h: deprecate allocator API, provide _free1() for consistency. * glib/gnode.h: deprecate allocator API. * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can be used for poll rec lists. * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*(). g_relation_destroy(): free all tuples from the all_tuples hash table, this effectively maintains the life time track keeping of tuples. g_relation_delete_tuple(): free tuples which are removed from the all_tuples hash table. this fixes a temporary leak that was present in the memchunk code until the destruction of the relation.
/external/bluetooth/glib/glib/gmem.c
|
213e90aa188006f164ce292782c1594624a40c70 |
|
22-Mar-2005 |
Matthias Clasen <mclasen@redhat.com> |
Add g_try_new, g_try_new0, g_try_renew and g_try_malloc0. (#169611, Stefan 2005-03-21 Matthias Clasen <mclasen@redhat.com> * glib/gmem.h: Add g_try_new, g_try_new0, g_try_renew and g_try_malloc0. (#169611, Stefan Kost) * glib/gmem.c: Implement g_try_malloc0.
/external/bluetooth/glib/glib/gmem.c
|
608a31b98e1420f487190871ee7312db2643d93d |
|
14-Mar-2005 |
Matthias Clasen <mclasen@redhat.com> |
Make PLT-reduction work with gcc4, and don't include everything in 2005-03-13 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in galias.h: * glib/glib.symbols: Group symbols by header and source file. * glib/makegalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegalias.pl -def * glib/Makefile.am (galiasdef.c): Add a rule to generate this file. * glib/*.c: Include galias.h after the other GLib headers, include galiasdef.c at the bottom.
/external/bluetooth/glib/glib/gmem.c
|
8dc560a73999290b557893cf3d3eb1687983e021 |
|
04-Oct-2004 |
Matthias Clasen <matthiasc@src.gnome.org> |
Only set vtable_set if the vtable is set.
/external/bluetooth/glib/glib/gmem.c
|
dafdffd7516324a67db519372e9dcfddfd4fdeb0 |
|
16-Sep-2004 |
Matthias Clasen <maclas@gmx.de> |
Implement the same PLT reduction technique used in GTK+: Thu Sep 16 02:03:15 2004 Matthias Clasen <maclas@gmx.de> Implement the same PLT reduction technique used in GTK+:
/external/bluetooth/glib/glib/gmem.c
|
53e132ed398f7c6b305093112b9548cb5017616c |
|
21-Dec-2003 |
Matthias Clasen <maclas@gmx.de> |
Fix the locking of the mem_chunks list. (#127096, Balazs Scheidler) Sun Dec 21 22:42:42 2003 Matthias Clasen <maclas@gmx.de> * glib/gmem.c (g_mem_chunk_destroy): Fix the locking of the mem_chunks list. (#127096, Balazs Scheidler)
/external/bluetooth/glib/glib/gmem.c
|
a412fb16541620ed72da86daac0774afe4703d9d |
|
25-Jul-2003 |
Matthias Clasen <matthiasc@src.gnome.org> |
Remove some explicit Docbook markup which is no longer necessary since gtk-doc does the right thing.
/external/bluetooth/glib/glib/gmem.c
|
8e91cf9eb98da826abc1384418b5e9a4401048b8 |
|
14-Feb-2003 |
Sebastian Wilhelmi <seppi@seppi.de> |
Fixes for #101264 and #99372: 2003-02-14 Sebastian Wilhelmi <seppi@seppi.de> Fixes for #101264 and #99372: * glib/gconvert.h, glib/gmain.c, glib/gmem.c, glib/gmessages.c, glib/grand.c: Include gthreadinit.h and rename the thread initialization functions a bit and let them start with _, so that later we can stop exporting them. * glib/gmem.c, glib/gmessages.c: Move the g_private_new() calls to new functions. They have to be called after setting g_threads_got_initialized to TRUE (see #101264). * glib/gthread.c: Include gthreadinit.h. Renamed g_mutex_init() to g_thread_init_glib(). Call the thread initialization functions (which are not allowed to call g_private_new), then set g_threads_got_initialized to TRUE, then call the other thread initialization functions (which must not call anything but g_private_new()). * glib/gthreadinit.h: New private header to cleanly declare all thread initialization functions. * gthread/gthread-impl.c: Include gthreadinit.h. In g_thread_init() just call g_thread_init_glib(), which in turn calls the other functions (see #99372). * glib/Makefile.am: Added gthreadinit.h.
/external/bluetooth/glib/glib/gmem.c
|
bbbd329ff5bd634b4e1d4fb43b13538779e44a78 |
|
04-Dec-2002 |
Owen Taylor <otaylor@redhat.com> |
Patch from Sven Neumann to make the include order consistent. (#71704) Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com> * glib/*.c: Patch from Sven Neumann to make the include order consistent. (#71704)
/external/bluetooth/glib/glib/gmem.c
|
36adc08bfd163fcd96b9a91d8dc87295010df114 |
|
11-Jun-2002 |
Owen Taylor <otaylor@redhat.com> |
tests/patterntest.c (test_compilation) A couple of 64-bit printf format Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com> * tests/patterntest.c (test_compilation) * glib/gmem.c (profiler_try_realloc): A couple of 64-bit printf format fix from George Lebl. * glib/gconvert.c (open_converter): Fix gsize/gint mixup for g_iconv() arguments.
/external/bluetooth/glib/glib/gmem.c
|
5b492c98cb6264bcd6fd89a8b1c42a9914f89a3a |
|
23-Mar-2002 |
Owen Taylor <otaylor@redhat.com> |
Fix problem where if g_mem_chunk_reset() is called on an alloc-only Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com> * glib/gmem.c (g_mem_chunk_reset): Fix problem where if g_mem_chunk_reset() is called on an alloc-only memchunk, then a useles GTree was created.
/external/bluetooth/glib/glib/gmem.c
|
f1019c04fc06e90d4eeacad6122445314f1df5da |
|
18-Nov-2001 |
Owen Taylor <otaylor@redhat.com> |
Get rid fo g_log_domain_glib variable in favor of just using a string Sat Nov 17 17:21:57 2001 Owen Taylor <otaylor@redhat.com> * glib/Makefile.am glib/*.c glib/gmessages.h: Get rid fo g_log_domain_glib variable in favor of just using a string constant.
/external/bluetooth/glib/glib/gmem.c
|
748d5c0449e478b54e7f44b2b0712f4d8bc8151a |
|
02-Nov-2001 |
Tim Janik <timj@gtk.org> |
remove public signal.h include. Fri Nov 2 19:54:16 2001 Tim Janik <timj@gtk.org> * glib/gbacktrace.h (G_BREAKPOINT): remove public signal.h include.
/external/bluetooth/glib/glib/gmem.c
|
c7896e13d3660fd189df1dd61b9fc67e45f1b9e1 |
|
27-Sep-2001 |
Matthias Clasen <matthiasc@src.gnome.org> |
glib/gmem.c (g_mem_is_system_malloc): Return !vtable_set. docs/reference/glib/glib-sections.txt: Add g_mem_is_system_malloc.
/external/bluetooth/glib/glib/gmem.c
|
5277fd1e249f269736973ba20d0dd992608c1dd4 |
|
21-Sep-2001 |
Owen Taylor <otaylor@redhat.com> |
Rename g_mem_vtable_is_set() to g_mem_is_system_malloc(). Thu Sep 20 20:33:45 2001 Owen Taylor <otaylor@redhat.com> * Rename g_mem_vtable_is_set() to g_mem_is_system_malloc().
/external/bluetooth/glib/glib/gmem.c
|
5c12c0acf1cb7330f7959d0c765c520850a3aafa |
|
19-Sep-2001 |
Owen Taylor <otaylor@redhat.com> |
Patch from Matthias Clasen (#59806) Wed Sep 19 14:17:31 2001 Owen Taylor <otaylor@redhat.com> Patch from Matthias Clasen (#59806) * configure.in: Check for vasprintf(). * glib/gmem.[ch]: Add g_mem_vtable_is_set() to be used for efficiency hacks to avoid extra copies when not needed. * glib/gstrfuncs.c: Use vasprintf() to implement g_strdup_printf() when available. * glib/gmessages.c (g_logv): Avoid using printf_string_upper_bound() when we have have vsnprintf. * glib/gmessages.c (printf_string_upper_bound): Don't segfault when warning about positional parameters.
/external/bluetooth/glib/glib/gmem.c
|
4d892e879e2d728d9709b73e5f34e67938471cb7 |
|
19-Sep-2001 |
Owen Taylor <otaylor@redhat.com> |
Patch from Darin Adler to remove GReal* structures in favor of simple Wed Sep 19 14:05:27 2001 Owen Taylor <otaylor@redhat.com> * glib/{gcache.c,gmem.c,grel.c,gstring.c,gtimer.c,gtree}: Patch from Darin Adler to remove GReal* structures in favor of simple opaque typedefs in cases where there were no non-private members. (#59693)
/external/bluetooth/glib/glib/gmem.c
|
8800b2542b9be9799ca7d02b6356cb38e180577e |
|
31-Jul-2001 |
Sven Neumann <sven@gimp.org> |
declare gboolean vtable_set static. 2001-07-31 Sven Neumann <sven@gimp.org> * glib/gmem.c: declare gboolean vtable_set static.
/external/bluetooth/glib/glib/gmem.c
|
a70206f1770b436525fb151e954d0aa60e2ef051 |
|
18-May-2001 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Fixed mutex deadlock. 2001-05-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gmem.c (g_mem_profile): Fixed mutex deadlock.
/external/bluetooth/glib/glib/gmem.c
|
a5947b9df810b824dd35fa572a3ad74d03d0f800 |
|
10-May-2001 |
Tim Janik <timj@gtk.org> |
use g_str_hash() algorithm to generate hashes. Thu May 10 15:19:01 2001 Tim Janik <timj@gtk.org> * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm to generate hashes. * gmem.c (standard_calloc): free() doesn't return a value (Mark Murnane). Thu May 10 14:00:48 2001 Tim Janik <timj@gtk.org> * gparamspecs.[hc]: removed g_param_spec_stringc() in lack of evidence of public need. * gsignal.h: added g_signal_disconnect_by_func(), g_signal_block_by_func() and g_signal_unblock_by_func() convenience macros as per owen's request. * gtype.c (SIZEOF_FUNDAMENTAL_INFO): align sizeof (GTypeFundamentalInfo) to size of longs and pointers.
/external/bluetooth/glib/glib/gmem.c
|
1c391cc69846713b0406545146ea232efc5f34e2 |
|
18-Feb-2001 |
Havoc Pennington <hp@pobox.com> |
include string.h 2001-02-17 Havoc Pennington <hp@pobox.com> * gthread.c: include string.h Applied patch from Soeren Sandmann: * testglib.c: const fixes * gwin32.h: format cleanups * gutils.c (g_atexit): constify a variable (g_find_program_in_path): constification (g_basename): G_CONST_RETURN (g_path_skip_root): G_CONST_RETURN (g_getenv): G_CONST_RETURN (g_get_user_name): G_CONST_RETURN (g_get_real_name): G_CONST_RETURN (g_get_home_dir): G_CONST_RETURN (g_get_tmp_dir): G_CONST_RETURN (g_get_prgname): G_CONST_RETURN (_glib_gettext): G_CONST_RETURN * gunicode.h: formatting cleanups * gstrfuncs.c (g_strerror): G_CONST_RETURN (g_strsignal): G_CONST_RETURN * gspawn.c (g_execute): const on variables * gmessages.c (printf_string_upper_bound): fix const on a variable * gmem.c (g_mem_chunk_new): make the "name" arg const (struct _GRealMemChunk): make the "name" field const * gfileutils.c (g_file_open_tmp): store const return in a const gchar* variable * gdataset.c (g_quark_to_string): G_CONST_RETURN 2001-02-17 Havoc Pennington <hp@pobox.com> Applied patch from Soeren Sandmann: * gvaluetypes.c (g_value_get_string): G_CONST_RETURN * gtype.c (g_type_name): G_CONST_RETURN * gsignal.c (g_signal_name): G_CONST_RETURN * gobject-query.c (main): const fix 2001-02-17 Havoc Pennington <hp@pobox.com> Applied patch from Soeren Sandmann: * gmodule.c (g_module_error): G_CONST_RETURN (g_module_name): G_CONST_RETURN
/external/bluetooth/glib/glib/gmem.c
|
22357542e9cb017e2dfeee0004d6a22ed8897468 |
|
04-Feb-2001 |
Tim Janik <timj@gtk.org> |
s/glib_trap_/g_trap_/. add comments on g_trap_instance_signals, Sun Feb 4 07:38:32 2001 Tim Janik <timj@gtk.org> * docs/debugging.txt: s/glib_trap_/g_trap_/. add comments on g_trap_instance_signals, g_trace_instance_signals and GRUNTIME_DEBUG. * gmem.c: s/glib_trap_/g_trap_/. Sun Feb 4 07:30:53 2001 Tim Janik <timj@gtk.org> * gtype.[hc]: changed g_type_init() to take debugging flags initially, a combination of G_TYPE_DEBUG_OBJECTS and G_TYPE_DEBUG_SIGNALS. using the G_TYPE_ prefix is a bit odd here, but basically g_type_int() serves as initialization fucntion for all of GType, GObject, GSignal, so what the heck. * gobject.c: special case debugging code properly. changed glib_trap_object_ref to g_trap_object_ref. * gsignal.c: add signal emission debugging abilities, along with a new trap object g_trap_instance_signals.
/external/bluetooth/glib/glib/gmem.c
|
9e46ef946571f1cbd31a80236c7317c23f8b9b74 |
|
09-Jan-2001 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Made g_profile_mutex a GMutex* instead of G_LOCK_DEFINE_STATIC to avoid 2001-01-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gmem.c: Made g_profile_mutex a GMutex* instead of G_LOCK_DEFINE_STATIC to avoid deadlock for thread implementations without native static mutexes. Contruct g_profile_mutex in g_mem_init().
/external/bluetooth/glib/glib/gmem.c
|
782a8e2e7c69c3d98bd69bcfdbb65ded520576f4 |
|
29-Dec-2000 |
Tim Janik <timj@gtk.org> |
got rid of outdated dmalloc support. provide g_try_malloc() and Thu Dec 28 10:21:46 2000 Tim Janik <timj@gtk.org> * gmem.[hc]: got rid of outdated dmalloc support. provide g_try_malloc() and g_try_realloc() which _may_ fail and return NULL. nuked g_mem_check(), provided GMemVTable for memory function virtualization, alterable at program startup with g_mem_set_vtable(). provided glib_mem_profiler_table and g_mem_profile() to support limited profiling information out of the box (uses mprotect() for free()ed areas on linux). provide globally visible G_MEM_ALIGN. buncha cleanups. * docs/macros.txt: file to get a clue about the various configuration macros. * docs/debugging.txt: explain debugging traps. * configure.in: got rid of --enable-mem-check and --enable-mem-profile, define GLIB_SIZEOF_VOID_P and GLIB_SIZEOF_LONG. check malloc prototypes and define SANE_MALLOC_PROTOS is we can use them. <boy, is this file a mess> * gutils.c, gscanner.c: fix up compatibility warnings, use g_message(). Thu Dec 28 11:36:44 2000 Tim Janik <timj@gtk.org> * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2 fucntionality if DISABLE_MEM_POOLS is defined. * gtype.c: honour DISABLE_MEM_POOLS. * gsignal.c (g_signal_init): flag signal key bsearch array with G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour DISABLE_MEM_POOLS. * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE | G_PARAM_WRITABLE).
/external/bluetooth/glib/glib/gmem.c
|
c7f80dbb13b58e439291d57f28e91accbc7bdefb |
|
19-Dec-2000 |
Alexander Larsson <alexl@redhat.com> |
Added --disable-mem-pools option. 2000-12-19 Alexander Larsson <alexl@redhat.com> * configure.in: Added --disable-mem-pools option. * glist.c: * gslist.c: * gnode.c: * gmem.c: Disable free list and memory chunks if DISABLE_MEM_POOLS is defined.
/external/bluetooth/glib/glib/gmem.c
|
723ef16447f7d478e78a0cd0dbc63619c82b0cfb |
|
25-Sep-2000 |
Elliot Lee <sopwith@src.gnome.org> |
Add a few missing G_GNUC_CONST's. Add a few missing G_GNUC_CONST's.
/external/bluetooth/glib/glib/gmem.c
|
c9bd7542e1a28ba9de60048361c0a97d251833e7 |
|
26-Jul-2000 |
Tim Janik <timj@gtk.org> |
applied patch from Andreas Persenius <ndap@swipnet.se> that updates the Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org> * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that updates the license headers to the GNU Lesser General Public License, as well as updating the copyright year to 2000.
/external/bluetooth/glib/glib/gmem.c
|
1e5d06d4ceb07ae8ddbd596cb69936fb3807a116 |
|
19-May-2000 |
Tim Janik <timj@gtk.org> |
fixed SIZEOF_LONG==4 assumption with ENABLE_MEM_CHECK, from Art Haas Fri May 19 09:00:44 2000 Tim Janik <timj@gtk.org> * gmem.c (g_free): fixed SIZEOF_LONG==4 assumption with ENABLE_MEM_CHECK, from Art Haas <ahaas@neosoft.com>. * gslist.c (g_slist_reverse): shut up compiler. * gscanner.c (g_scanner_get_token_ll): removed inline assignment. * garray.c: remove index>=0 checks for unsigned indices. * gmain.c (g_idle_prepare): timeout assignment fix. * gtree.c (g_tree_node_rotate_right): shut up compiler.
/external/bluetooth/glib/glib/gmem.c
|
d5fccfb0eb2ec99fc29845082c72a5dc0a66045a |
|
26-Apr-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Changed the 'value' parameter of g_cache_remove from gpointer to 2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of g_cache_remove from gpointer to gconstpointer. Dito for the 'key' parameter of g_tree_lookup and g_tree_remove and the 'data' parameter of g_tree_serach. This function now takes a function of type GCompareFunc instead of GSearchFunc. * glib.h: Removed declaration of GSearchFunc. * gmem.c: s/GSearchFunc/GCompareFunc/.
/external/bluetooth/glib/glib/gmem.c
|
8c90d7766b1708a8bcb3cb96988b6b7fc92c2e59 |
|
17-Apr-2000 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Add configure test for garbage collector friendliness for GLib. If 2000-04-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in, acconfig.h: Add configure test for garbage collector friendliness for GLib. If enabled, ENABLE_GC_FRIENDLY will be defined. * garray.c, ghash.c, glist.c, gmain.c, gmem.c, gnode.c, gqueue.c, gslist.c, gtree.c: If ENABLE_GC_FRIENDLY is defined, NULLify all memory released by the user, but cached by GLib. This lets a garbage collector have a more correct view of the actually used memory.
/external/bluetooth/glib/glib/gmem.c
|
e0786b05e6b9ed0bec42d780624832c4232b2d7c |
|
22-Mar-2000 |
Owen Taylor <otaylor@redhat.com> |
Fix indentation. Wed Mar 22 16:49:57 2000 Owen Taylor <otaylor@redhat.com> * gmem.c (g_mem_chunk_area_compare): Fix indentation.
/external/bluetooth/glib/glib/gmem.c
|
916d4db104dc6d5c33323aa72eea41ccc9a3817a |
|
22-Mar-2000 |
Elliot Lee <sopwith@src.gnome.org> |
gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two pointers more than 4G apart.
/external/bluetooth/glib/glib/gmem.c
|
ddfc68fc98bd688024d7c4b10655e553f1f31857 |
|
17-Sep-1999 |
Tim Janik <timj@gtk.org> |
applied patch from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem Fri Sep 17 10:24:45 1999 Tim Janik <timj@gtk.org> * gmem.c (g_mem_chunk_compute_size) (g_mem_chunk_new): applied patch from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem chunk's area sizes to be a multitiple of atom_size, and to eliminate the MAX_MEM_AREA restriction of 65536 bytes. we also catch cases where users pass an area size < atom size with a return_if_fail statement now (which is ok, because previously this lead to memory corruption anyways).
/external/bluetooth/glib/glib/gmem.c
|
87c7aeb93bd654776f59805a342ad913031034f3 |
|
24-Jul-1999 |
Tim Janik <timj@gtk.org> |
18:36. incorporated proposed cleanups from gtk-devel-list. Sat Jul 24 20:11:35 1999 Tim Janik <timj@gtk.org> * merged GLib 1.3.0 with glib-1.2.3 from Fri Jul 16 22:18:36. * incorporated proposed cleanups from gtk-devel-list. * bumped version number to GLib-1.3.1 * glib.h: * gqueue.c: * gstring.c: * glist.c: removed string tokenisation (we got g_strsplit() and g_strjoin() already) and readline functions. s/g_list_delete/g_list_delete_link. implemented g_slist_delete_link. removed notion of g_ATEXIT() macro in glib.h, this is an *internal* macro, g_atexit() is provided for public consumption. added GTrashStack inline utility functions. reimplement double eneded queues. removed GStack implementation, people can use a queue or a (singly) linked list for this task. deprecated g_strescape(), we need the SunOS variants here. * gdate.c: added DEBUG_MSG() macro to wrap old messages. * *.*: CVS merges. * upgrade to libtool 1.3.3.
/external/bluetooth/glib/glib/gmem.c
|
5f17e39e2a19abd133d5d74bd1a9abb619320432 |
|
17-Mar-1999 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Sun Mar 14 17:50:35 1999 Tim Janik <timj@gtk.org> Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org> * merges from glib-1-2: Sun Mar 14 17:50:35 1999 Tim Janik <timj@gtk.org> * gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements to g_return_if_fail(). (g_mem_profile): (g_mem_chunk_print): (g_mem_chunk_info): removed some extraneous "\n"s at the end of the log messages. * gtimer.c (g_timer_*): changed a bunch of g_assert() statements to g_return_if_fail(). * grel.c (g_*): changed a bunch of g_assert() statements to g_return_if_fail() and added some extra ones to check relation != NULL. Tue Mar 9 23:25:50 1999 Tim Janik <timj@gtk.org> * configure.in: check for working realloc (NULL,). * gmem.c (g_realloc): use malloc() for initial allocation on systems where realloc(NULL,) will not work (this is the case on SunOS, reported by Tom Geiger). Mon Mar 8 07:42:08 1999 Tim Janik <timj@gtk.org> * ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the flag around the call to g_hook_free() to avoid spurious warnings (happens during destruction phase). 1999-03-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to Friedrich Dominicus <Friedrich.Dominicus@inka.de>
/external/bluetooth/glib/glib/gmem.c
|
b9ef2b41db975061960e2217220668c2a5d563da |
|
24-Feb-1999 |
CST 1999 Shawn T. Amundson <amundson@gtk.org> |
inserted additional note to look for ChangeLog and AUTHORS file for a log Wed Feb 24 00:08:42 CST 1999 Shawn T. Amundson <amundson@gtk.org> * *.[ch]: inserted additional note to look for ChangeLog and AUTHORS file for a log of modifications.
/external/bluetooth/glib/glib/gmem.c
|
af15d082a8d0259bd9528ca4bd711fe010f34abe |
|
18-Feb-1999 |
Tim Janik <timj@gtk.org> |
plugged a memory leak, reported by Koen D'Hondt <ripley@xs4all.nl> on 15 Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org> * gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt <ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.
/external/bluetooth/glib/glib/gmem.c
|
9071de6fdc9d39e5443d1982cf7689f5d2fc9d45 |
|
08-Feb-1999 |
Owen Taylor <otaylor@redhat.com> |
Copy all elements of the allocations[] array, including the last. (Pointed Sun Feb 7 21:56:00 1999 Owen Taylor <otaylor@redhat.com> * gmem.c (g_mem_profile): Copy all elements of the allocations[] array, including the last. (Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
/external/bluetooth/glib/glib/gmem.c
|
c3c1b2edc010c08ece04d8c48abc0074e1162d2d |
|
17-Dec-1998 |
Sebastian Wilhelmi <wilhelmi@ira.uka.de> |
Fixed size in g_memmove, reported by Alexander Larsson 1998-12-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove, reported by Alexander Larsson <alla@lysator.liu.se>. * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
/external/bluetooth/glib/glib/gmem.c
|
931ea952650b013b834041b91b0c37a748ffd449 |
|
15-Dec-1998 |
Owen Taylor <otaylor@src.gnome.org> |
This commit merges the glib-threads branch into the main branch. See the ChangeLog for details of the changes. In brief overview: - The set of threading functions can be set - A default implementation is provided in -lgthread - All static data structures are locked using these functions if g_thread_init() is called.
/external/bluetooth/glib/glib/gmem.c
|
9c1692c2604bf147d2b08877d8cebb1f077658e0 |
|
24-Nov-1998 |
Tim Janik <timj@gtk.org> |
removed the GListAllocator type and its g_*_allocator_*() function Tue Nov 24 09:40:00 1998 Tim Janik <timj@gtk.org> * glib.h: removed the GListAllocator type and its g_*_allocator_*() function variants (which weren't working anyways) in favour of a generic GAllocator type. new functions: g_allocator_new, g_allocator_free, g_slist_push_allocator, g_slist_pop_allocator, g_list_push_allocator, g_list_pop_allocator, g_node_push_allocator and g_node_pop_allocator. * gstring.c: removed bogus slist allocator code. * gtree.c: maintain own list of free tree nodes and don't waste GSLists for that, removed bogus slist allocator code. * glist.c: use GAllocators for node allocation. * gslist.c: use GAllocators for node allocation. * gnode.c: use GAllocators for node allocation. * gdataset.c: cleanups wrt automatic initialization.
/external/bluetooth/glib/glib/gmem.c
|
5900267cc7bfe0641709d43eaba28f6b0ff7ab0d |
|
01-Nov-1998 |
Raja R Harinath <harinath@src.gnome.org> |
Land glib-rrh-19981025-0.patch. * Makefile.am (glibconfig.h): New rule. (stamp-gc-h): New rule. Generate `glibconfig.h'. * configure.in (AM_CONFIG_HEADER): It is now `config.h'. (HAVE_BROKEN_WCTYPE): On Solaris, look for iswalnum in -lw before concluding "broken wctype". (glibconfig.h): Use AC_OUTPUT_COMMANDS to put generation code into config.status. * glib.h: Remove a lot of tests and defines. All these have been moved to `configure.in (glibconfig.h)'. * gerror.c: Include <config.h>. * gmem.c: Likewise. * gstrfuncs.c: Likewise. * gutils.c: Likewise. This could cause some short term instability.
/external/bluetooth/glib/glib/gmem.c
|
a6149403deed931b8c78b26aeb0e9c952cf3ef93 |
|
27-Oct-1998 |
Tor Lillqvist <tml@iki.fi> |
removed dummy structure definitions for struct _GCache, _GTree, _GTimer, Tue Oct 27 03:00:50 1998 Tim Janik <timj@gtk.org> * glib.h: removed dummy structure definitions for struct _GCache, _GTree, _GTimer, _GMemChunk, _GListAllocator and _GStringChunk. * gutils.c: implement glib's inline functions _after_ all include statements have been processed. removed Tor's MAXPATHLEN check since there already was one supplied further down in this file. (LibMain): special cased the #ifdef __LCC__ case for NATIVE_WIN32, since lcc maybe used on other platforms as well. why in hell is this stuff required? (g_get_any_init): for windows, if the user name is supplied, use it as realname also. in general, if there is no homedir specified, use the tmpdir that we already figured. * gtimer.c (g_timer_elapsed): changed a g_assert() statement to g_return_if_fail(). * applied glib-tml-981020-0.patch for WIN32 portability, added some comments and g_return_if_fail() statements, minor indentation fixes. ChangeLog entry from Tor Lillqvist is appended. * glib.h (struct dirent): use lower case structure members. * glib.h: * makefile.lcc: * makefile.msc: s/COMPILING_GLIB/GLIB_COMPILATION/ 1998-10-20: Tor Lillqvist <tml@iki.fi> * README.win32 glib.def gmodule.def * glibconfig.h.win32 gmodule/gmoduleconf.h.win32: New files for the Windows port. The .def files list exported symbols for the Microsoft linker and compatibles. * configure.in: Added checks for some platform-dependent headers: pwd.h sys/param.h sys/select.h sys/time.h sys/times.h unistd.h, and the function lstat. * gerror.c: Conditionalized inclusion of system-dependent headers. Changes for Windows: no gdb to do a stack trace. Just call abort(). * glib.h: Changes for Windows: Added macros G_DIR_SEPARATOR, G_DIR_SEPARATOR_S for platform-dependent file name syntax elements. Added macros G_SEARCHPATH_SEPARATOR, G_SEARCHPATH_SEPARATOR_S for platform-dependent search path syntax conventions. Added pragmas for Microsoft C to make it more pedantic. Marked GLib's global variables for export from DLL. Added the function g_strescape that escapes backslashes. Added functions g_path_is_absolute and g_path_skip_root to handle platform-dependent file name syntax. Added the function g_getenv that expands environment variables that contain references to other environment variables, as is typical on Windows NT. Added the GIOChannel structure which is used to encapsulate the IPC mechanism used by the GIMP's plug-ins, and possibly other things later. On Unix a GIOChannel encapsulates just a file descriptor. On Windows it contains a file handle from _pipe() and a few other things related to the implementation of gdk_input_add and GIMP plug-in communication. Subject to change. Removed duplicate declarations of the version variables. For the Microsoft compiler, declare own implementation of ftruncate and the <dirent.h> functions. * gmem.c: Define a symbolic name for the profiling table size. * gmessages.c: Conditionalized inclusion of unistd.h. On Windows, output using stdio to stdout. * gscanner.c: Conditionalized inclusion of unistd.h. Added changes for Microsoft C. Added CR to the skipped character set. Added small workaround for MSC compiler bug in g_scanner_cur_value. * gstrfuncs.c: Added the function g_strescape, which escapes the backslash character. Needed especially when printing Windows filenames. * gtimer.c: Conditionalized inclusion of unistd.h and sys/time.h. Added implementations for Windows. * gutils.c: Conditionalized inclusion of platform-dependent headers. Use the platform-independent file name syntax macros. Conditionalize code on platform-dependent features. Added the functions g_path_is_absolute g_path_skip_root and g_getenv. Added the GIOChannel-related functions. Added compiler-dependent Unix compatibility functions for Windows. * makefile.lcc makefile.msc: New files. Compiler-specific makefiles for LCC-Win32 and Microsoft C. Only Microsoft C is actually supported currently. * testglib.c: Added pathname check cases for Windows. Added workaround for bug in the Microsoft runtime library. Improved some tests a bit. Tue Oct 27 04:00:11 1998 Tim Janik <timj@gtk.org> * testgmodule.c (main): changed the #ifdef WIN32 test to NATIVE_WIN32, this needs to be more constistent throughout the code, do we go for NATIVE_WIN32 or WIN32? * gmodule.c (LibMain): special cased the #ifdef __LCC__ case for NATIVE_WIN32, since lcc maybe used on other platforms as well. * libgplugin_a.c (LibMain): * libgplugin_b.c (LibMain): likewise. not sure i like this special requirement for lcc in here. * gmodule-dl.c (_g_module_build_path): feature empty "" directories and prepend the module name with "lib". * gmodule-dld.c (_g_module_build_path): * gmodule-win32.c (_g_module_build_path): feature empty "" directories. * we need some more magic in the _g_module_build_path variants so we don't append/prepend lib and .so, .sl or .dll for those names that already contain it. * applied patch from Tor Lillqvist for g_module_build_path() and windows support. 1998-10-20: Tor Lillqvist <tml@iki.fi> * gmodule/gmodule-win32.c: New file. * gmodule/gmodule.c gmodule/gmodule.h: Added the funcion g_module_build_path that builds the path to a module file, decorating the name according to the system's conventions. Added the Windows implementation. * gmodule/libgplugin_a.c gmodule/libgplugin_b.c: Added LibMain for LCC-Win32. * gmodule/testgmodule.c: Handle Windows dll names.
/external/bluetooth/glib/glib/gmem.c
|
823a25beb64e24801025e27f145e2fb3aad45c36 |
|
06-Oct-1998 |
Tim Janik <timj@gtk.org> |
fixed memory offsett when ENABLE_MEM_CHECK is defined and Tue Oct 6 14:29:47 1998 Tim Janik <timj@gtk.org> * gmem.c (g_malloc0): fixed memory offsett when ENABLE_MEM_CHECK is defined and ENABLE_MEM_PROFILE is not (patch from Martin Pool <mbp@wistful.humbug.org.au>).
/external/bluetooth/glib/glib/gmem.c
|
1c3646f597009f2c7218cded888e7b6b0c5f3146 |
|
05-Sep-1998 |
Tim Janik <timj@gtk.org> |
use g_mem_chunk_alloc0() to allocate the memchunk, so the correct size of Sat Sep 5 04:40:02 1998 Tim Janik <timj@gtk.org> * glib.h: (g_chunk_new0): use g_mem_chunk_alloc0() to allocate the memchunk, so the correct size of the memchunk is allocated with 0's and not a memory portion of the size of the desired type. * gmem.c: new function g_mem_chunk_alloc0() which will initialize a memory area allocated with g_mem_chunk_alloc() with 0's.
/external/bluetooth/glib/glib/gmem.c
|
c4a99a2eb963ead9738b4c798bee2be21a93705b |
|
19-Aug-1998 |
Elliot Lee <sopwith@src.gnome.org> |
gmem.c: add ability to exclude memory chunks from memory profiling gmem.c: add ability to exclude memory chunks from memory profiling information.
/external/bluetooth/glib/glib/gmem.c
|
e1f0fb0c1e096407b41c98c7817fc4fc2aba5217 |
|
18-Aug-1998 |
Tim Janik <timj@gtk.org> |
new function g_log_set_always_fatal() to set an additional fatal_mask for Tue Aug 18 04:40:17 1998 Tim Janik <timj@gtk.org> * glib.h: * gmessages.c: new function g_log_set_always_fatal() to set an additional fatal_mask for log levels that are considered to be fatal globally (required by gtk). since this mask is not domain-associated, it is restricted to the log levels, introduced by glib itself. * gmem.c: * grel.c: * gtree.c (g_tree_node_check): don't use g_print() calls for informational/debugging output, but log all this stuff through g_log() with G_LOG_LEVEL_INFO. libraries shouldn't use printf(), g_print() or g_printerr() at all.
/external/bluetooth/glib/glib/gmem.c
|
2e0320d57e417f7d1c838d729a99545db2228e93 |
|
11-Jun-1998 |
Owen Taylor <otaylor@src.gnome.org> |
Initial revision
/external/bluetooth/glib/glib/gmem.c
|