History log of /external/bluetooth/glib/glib/gslice.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
440ebdec6ff0b6036349392b1a08cd0639d9d4d5 24-Jul-2008 Tor Lillqvist <tml@novell.com> Use G_GSIZE_FORMAT instead of the C99 "zu".

2008-07-24 Tor Lillqvist <tml@novell.com>

* glib/gslice.c (smc_notify_free): Use G_GSIZE_FORMAT instead of
the C99 "zu".


svn path=/trunk/; revision=7249
/external/bluetooth/glib/glib/gslice.c
f37b73fb95d29efdcb24c3d30ceccc3883738e7e 17-Jul-2008 Matthias Clasen <matthiasc@src.gnome.org> Avoid a warning when printing a pid_t. Pointed out by Morten Welinder.

* glib/gslice.c (mem_error): Avoid a warning when printing a pid_t.
Pointed out by Morten Welinder.


svn path=/trunk/; revision=7196
/external/bluetooth/glib/glib/gslice.c
9a1cf274de077f05ced634edb9ca5de4b3fb6f56 01-Jan-2008 Matthias Clasen <matthiasc@src.gnome.org> Remove C99 comments

svn path=/trunk/; revision=6227
/external/bluetooth/glib/glib/gslice.c
8a442ede823c0e92ebca81bb26a2bb1e44b2df3d 24-Aug-2007 Michael Natterer <mitch@imendio.com> make g_slice_copy() take a gconstpointer instead of a gpointer.

2007-08-24 Michael Natterer <mitch@imendio.com>

* glib/gslice.[ch]: make g_slice_copy() take a gconstpointer
instead of a gpointer.


svn path=/trunk/; revision=5720
/external/bluetooth/glib/glib/gslice.c
6b5e23435ac3a9fce58a1c860830d9c2b3ac6143 06-Aug-2007 Tor Lillqvist <tml@src.gnome.org> Revert my earlier change, see #440544.


svn path=/trunk/; revision=5680
/external/bluetooth/glib/glib/gslice.c
faaaa24885cf4c6fcf63d56515fe27fa483b6465 06-Aug-2007 Tor Lillqvist <tml@novell.com> 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
/external/bluetooth/glib/glib/gslice.c
964d75ebe37ba879d05fa1b27f06aed63e7106db 12-Jul-2007 Tim Janik <timj@imendio.com> migrate per-thread magazine caches from single-thread scenario to first

Thu Jul 12 15:46:40 2007 Tim Janik <timj@imendio.com>

* glib/gslice.c: migrate per-thread magazine caches from single-thread
scenario to first thread using GSlice after g_thread_init(); based on
a patch by Tor Lillqvist, fixes #331853.
removed warning about g_thread_init() being called after other glib
functions (in particular g_slice* calls), because GSlice can cope
with this now and the rest of glib is believed to cope as well.

* tests/slice-threadinit.c: new test program which tests GSlice working
across g_thread_init() calls.



svn path=/trunk/; revision=5629
/external/bluetooth/glib/glib/gslice.c
57336cec3fa3d8894750b6767147eced975c32e1 13-Jun-2007 Sven Neumann <sven@gimp.org> glib/gslice.[ch] added g_slice_copy() and g_slice_dup() (#442029).

2007-06-13 Sven Neumann <sven@gimp.org>

* glib/gslice.[ch] added g_slice_copy() and g_slice_dup()
(#442029).

* glib/glib.symbols: updated.


svn path=/trunk/; revision=5554
/external/bluetooth/glib/glib/gslice.c
a061009f52ffd636f3cd0cb142defde0b397572d 15-May-2007 Matthias Clasen <mclasen@redhat.com> Make g_slice_debug_tree_statistics() debug-only functionality again.

2007-05-14 Matthias Clasen <mclasen@redhat.com>

* glib/gslice.h:
* glib/gslice.c:
* glib/glib.symbols: Make g_slice_debug_tree_statistics()
debug-only functionality again.


svn path=/trunk/; revision=5492
/external/bluetooth/glib/glib/gslice.c
6a6d92a218f388dcd5056dd2f89c1657560e0558 30-Jan-2007 Matthias Clasen <mclasen@redhat.com> 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
/external/bluetooth/glib/glib/gslice.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/gslice.c
e319147a9e757c10b721c3e39e2998a3eaf00b5f 31-Dec-2006 Matthias Clasen <mclasen@redhat.com> Fix some C99isms. (#390913, Kazuki Iwamoto)

2006-12-31 Matthias Clasen <mclasen@redhat.com>

* glib/gslice.c: Fix some C99isms. (#390913, Kazuki Iwamoto)



svn path=/trunk/; revision=5183
/external/bluetooth/glib/glib/gslice.c
0f9cf7898b9b7c2ee495f546c770c376a64738eb 29-Dec-2006 Tim Janik <timj@imendio.com> turned detection of too late g_thread_init() calls into a warning. this is

Fri Dec 29 13:28:07 2006 Tim Janik <timj@imendio.com>

* glib/gslice.c: turned detection of too late g_thread_init() calls
into a warning. this is a temporary work-around for some head-room
to fix affected programs, memory corruption still occours regardless.
/external/bluetooth/glib/glib/gslice.c
5fef9365d8d7efde11399f571c0f865b4d6eb506 28-Dec-2006 Tim Janik <timj@imendio.com> removed pthread-dependant debugging bits, the code was already converted

Thu Dec 28 21:14:45 2006 Tim Janik <timj@imendio.com>

* glib/gslice.c: removed pthread-dependant debugging bits, the code
was already converted to GMutex. this obsoletes Tor's recent fixups.
/external/bluetooth/glib/glib/gslice.c
b5e5d38ce78f11b495473533aca179d77850c1e5 28-Dec-2006 Tor Lillqvist <tml@novell.com> Call InitializeCriticalSection() on the sdt_mutex in

2006-12-28 Tor Lillqvist <tml@novell.com>

* glib/gslice.c: Call InitializeCriticalSection() on the
sdt_mutex in g_slice_init_nomessage() and not in
_g_slice_thread_init_nomessage(), which is called only through
g_thread_init(). Not all programs call g_thread_init().
/external/bluetooth/glib/glib/gslice.c
b713fbc11a816bac72f05ae5b91475f42f49e41a 28-Dec-2006 Tor Lillqvist <tml@novell.com> Make it compile on Win32 without pthreads: Use a Win32 critical section

2006-12-28 Tor Lillqvist <tml@novell.com>

* glib/gslice.c: Make it compile on Win32 without pthreads: Use a
Win32 critical section instead.
/external/bluetooth/glib/glib/gslice.c
1bd89934513921526da2d9e6463faeda8e4d76a7 28-Dec-2006 Tim Janik <timj@imendio.com> implemented static debugging hash-tree to validate slice adresses and

Thu Dec 28 12:50:31 2006 Tim Janik <timj@imendio.com>

* glib/gslice.h, glib/gslice.c: implemented static debugging
hash-tree to validate slice adresses and sizes with G_SLICE=debug-blocks.
use abort() to exit in mem_error() to allow catching of these in gdb.
abort programs with a descriptive error message if g_thread_init() is
called after GSlice was in use. previously this just silently corrupted
the magazines.

* glib/ghash.c (struct _GHashNode): reordered fields to keep 8-byte
pointer alignment on 64bit systems and request smaller slice sizes
on 32bit systems.

* tests/slice-test.c: support '~' option flag to introduce slice
allocation/release corruption with a significant probability. this
allowes testing of G_SLICE=debug-blocks.
/external/bluetooth/glib/glib/gslice.c
48876d7fb573f2a3823c20564b705fe1f36726c4 30-Sep-2006 Matthias Clasen <matthiasc@src.gnome.org> Fix PLT issues
/external/bluetooth/glib/glib/gslice.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/gslice.c
8a8f185febd8cfa0ea05f92e68b8962479486bef 14-Feb-2006 Tim Janik <timj@imendio.com> only define _XOPEN_SOURCE to 600 to get at posix_memalign() in case we

Tue Feb 14 17:00:43 2006 Tim Janik <timj@imendio.com>

* glib/gslice.c: only define _XOPEN_SOURCE to 600 to get at
posix_memalign() in case we actually are going to use it, because
we detected a compliant implementation (#328997).

* configure.in (enable_included_printf): don't include malloc.h when
testing for posix_memalign() funcitonality, since this may break the
test on some systems (#328997).
/external/bluetooth/glib/glib/gslice.c
bd88bf87daa832d83d8f9a19038fc9c873283783 25-Jan-2006 Tim Janik <timj@imendio.com> fixed buglets reported by Jens Granseuer in #328254.

Wed Jan 25 19:16:57 2006 Tim Janik <timj@imendio.com>

* fixed buglets reported by Jens Granseuer in #328254.

* configure.in: free the memory allocated in posix_memalign() tests.

* glib/gslice.c: spelling fixes.
/external/bluetooth/glib/glib/gslice.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/gslice.c
7b744cf4d25b2c80cd28efd3e48fd08862b87beb 24-Jan-2006 Tim Janik <timj@imendio.com> only use posix_memalign() if it's known to work, revert to memalign()

Tue Jan 24 17:49:36 2006 Tim Janik <timj@imendio.com>

* glib/gslice.c: only use posix_memalign() if it's known to work,
revert to memalign() otherwise.

* configure.in: check for broken posix_memalign() implementations
to fix #328254.
/external/bluetooth/glib/glib/gslice.c
75db5782889dde25bb9f0ee7d4f06db0fa7edf5b 23-Jan-2006 Tim Janik <timj@imendio.com> initialize GSlice config from G_SLICE environemtn variable. we support

Mon Jan 23 16:46:20 2006 Tim Janik <timj@imendio.com>

* glib/gslice.c (slice_config_init): initialize GSlice config from
G_SLICE environemtn variable. we support G_SLICE=always-malloc
currently, which forces all g_slice_*() allocations to use the system
malloc instead.

* glib/gutils.c:
g_parse_debug_string(): added a note about not using g_malloc() here.
_g_getenv_nomalloc(): getenv() variant that doesn't use g_malloc or
g_slice. contains only guesswork in the WIN32 branch.
/external/bluetooth/glib/glib/gslice.c
0f3dfbfc86a56bfee5ed2887a740edbe3f9ee803 09-Jan-2006 Matthias Clasen <matthiasc@src.gnome.org> Include config.h first
/external/bluetooth/glib/glib/gslice.c
4a71102e70a767fcf817ba24f91c245c97727472 06-Jan-2006 Matthias Clasen <matthiasc@src.gnome.org> Fix a build problem on OS X.
/external/bluetooth/glib/glib/gslice.c
f2613bf9ed1dcf0bd2e8b131d20b50d146a6316d 04-Jan-2006 Tim Janik <timj@gtk.org> don't reverse chunk order when creating magazines, so we hand out chunks

Wed Jan 4 13:33:25 2006 Tim Janik <timj@gtk.org>

* glib/gslice.c (magazine_cache_pop_magazine): don't reverse chunk
order when creating magazines, so we hand out chunks with ascending
adresses.
/external/bluetooth/glib/glib/gslice.c
d947ad71678c34ac91a155250faa99331e0886d2 27-Dec-2005 Matthias Clasen <mclasen@redhat.com> Partial fix for bug #32937, Bogdan Nicula.

2005-12-27 Matthias Clasen <mclasen@redhat.com>

Partial fix for bug #32937, Bogdan Nicula.

* configure.in: Check for malloc.h
* glib/gslice.c: Don't include malloc.h unconditionally.
/external/bluetooth/glib/glib/gslice.c
8ade96bdce2163999121f7a44b9dbd683bdbd33b 27-Dec-2005 Matthias Clasen <mclasen@redhat.com> On Win32, include process.h (#325015, Kazuki Iwamoto)

2005-12-26 Matthias Clasen <mclasen@redhat.com>

* glib/gslice.c: On Win32, include process.h (#325015, Kazuki
Iwamoto)
/external/bluetooth/glib/glib/gslice.c
3f9d65375e46a49e3be7bf1ca7533b3a9ac310b4 20-Dec-2005 Tim Janik <timj@imendio.com> 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.
/external/bluetooth/glib/glib/gslice.c
c2584396e556b6124e754e16d38400863cbf76ef 09-Dec-2005 Tim Janik <timj@src.gnome.org> fix type inconsistency pointed out by gmorten
/external/bluetooth/glib/glib/gslice.c
6ed79b115c311323be086e2581650c33366c6f37 05-Dec-2005 Tim Janik <timj@imendio.com> implement chain walking for arbitrary ->next pointer offsets in

Mon Dec 5 15:53:20 2005 Tim Janik <timj@imendio.com>

* glib/gslice.c: implement chain walking for arbitrary ->next pointer
offsets in g_slice_free_chain_with_offset() based on a patch by behdad
in bug 323178. moved time consuming logic from g_slice_free() out of
the inner loop, so g_slice_free_chain_with_offset() provides a real
performance benefit over g_slice_free1() now.

* glib/gslice.h: renamed g_slice_free_chain() to
g_slice_free_chain_with_offset(). implemented g_slice_free_chain() as
a type-safe macro as suggested in bug 323178.
simplified the macro implementation of g_slice_free() and implemented
it in a type safe manner for all compliers as suggested by Morten
Welinder <mortenw@gnome.org>.

* glib/gmain.c:
* glib/glist.c:
* glib/gslist.c:
* glib/glib.symbols: s/g_slice_free_chain/g_slice_free_chain_with_offset/
/external/bluetooth/glib/glib/gslice.c
ec2155a8966773d398bb971df5d6a07a12b4a380 02-Dec-2005 Matthias Clasen <matthiasc@src.gnome.org> Portability fixes, C99ism removal
/external/bluetooth/glib/glib/gslice.c
bbb77c8d2140bb7a7255fdc39eaf2a6d3a4c1b5f 02-Dec-2005 Tim Janik <timj@src.gnome.org> fix uint/pointer casts
/external/bluetooth/glib/glib/gslice.c
1e01f52ed4b692f51f2ae2e80f2527fc8ff6a4af 02-Dec-2005 Tim Janik <timj@imendio.com> some naming and type size fixups.

Fri Dec 2 16:18:09 2005 Tim Janik <timj@imendio.com>

* glib/gslice.c: some naming and type size fixups.
/external/bluetooth/glib/glib/gslice.c
2319431345378df679e33f14b4b0f2d78eb6ce0d 02-Dec-2005 Tim Janik <timj@imendio.com> improved gettimeofday() timer resolution by maintaining acceptable load

Fri Dec 2 00:16:59 2005 Tim Janik <timj@imendio.com>

* glib/gslice.c: improved gettimeofday() timer resolution by maintaining
acceptable load distribution of the syscall.
(slab_allocator_free_chunk): reduce minimum/single-thread magazine sizes
to approximately page_size/2.5 to avoid excessive startup allocations.
/external/bluetooth/glib/glib/gslice.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/gslice.c