1. 29 May, 2017 1 commit
  2. 31 Jan, 2014 1 commit
  3. 01 Jun, 2013 1 commit
    • Allison Karlitskaya's avatar
      Remove a bunch of lingering g_thread_init() · 210b1f8b
      Allison Karlitskaya authored
      After this patch, there is but one remaining use of g_thread_init(),
      which is in tests/slice-threadinit.c, a testcase dedicated to testing
      the functionality of gslice across a g_thread_init() boundary.
      
      This testcase is pretty meaningless these days... probably we should
      delete it.
      210b1f8b
  4. 30 Apr, 2012 1 commit
  5. 04 Oct, 2011 1 commit
  6. 21 Sep, 2011 1 commit
    • Allison Karlitskaya's avatar
      Deprecate g_thread_create_full() · 14e6377a
      Allison Karlitskaya authored
      Replace it with g_thread_create_with_stack_size() and a real function
      implementation of g_thread_create().
      
      Modify a testcase that was calling g_thread_create_full()
      inappropriately (it was using the default values anyway).
      14e6377a
  7. 20 Jan, 2010 1 commit
  8. 17 Mar, 2007 1 commit
    • Hans Breuer's avatar
      define PCRE_STATIC to reflect the inclusion of pcre as LIB, not · 770b29ba
      Hans Breuer authored
      2007-03-17  Hans Breuer  <hans@breuer.org>
      
      	* glib/makefile.msc.in glib/pcre/makefile.msc 
      	  glib/update-pcre/update.sh : define PCRE_STATIC to reflect the 
      	inclusion of pcre as LIB, not stand-alone DLL. Also set NEWLINE=-1
      	to match any newline by default, use of ../../build/win32/make.msc
      
      	* glib/gregex.h : minimal includes of <glib/*.H> instead of <glib.h>
      
      	* glib/gnulib/makefile.msc : make use of ../../build/win32/make.msc
      
      	* tests/regex-test.c(verbose): don't pass a string containing '%' 
      	as first parameter to g_print ()
      	(test_match) : for the unexpected case output pattern and string
      	escaped
      
      	* tests/child-test.c tests/slice-color.c : fix c99ism
      	* tests/slice-test.c : fix c99ism and gccism
      	* tests/mapping-test.c tests/base-64-tests.c : don't 
      	#include <unistd.h> unconditionally
      	* tests/option-test.c : use G_GINT64_CONSTANT() instead of direct LL
      
      	* tests/makefile.msc.in : more tests build
      
      
      svn path=/trunk/; revision=5423
      770b29ba
  9. 28 Dec, 2006 1 commit
    • Tim Janik's avatar
      implemented static debugging hash-tree to validate slice adresses and · 1bd89934
      Tim Janik authored
      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.
      1bd89934
  10. 24 Jul, 2006 1 commit
  11. 05 Apr, 2006 1 commit
  12. 25 Jan, 2006 1 commit
    • Tim Janik's avatar
      honour g_mem_gc_friendly settings when freeing slices, make sure · eda944bc
      Tim Janik authored
      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.
      eda944bc
  13. 26 Dec, 2005 1 commit
  14. 20 Dec, 2005 1 commit
    • Tim Janik's avatar
      added mem_error() and mem_assert() to test and handle errors without · 3f9d6537
      Tim Janik authored
      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.
      3f9d6537
  15. 02 Dec, 2005 1 commit
    • Tim Janik's avatar
      extended to perform the benchmarking on the old memchunk code if 'O' is · 27312762
      Tim Janik authored
      Fri Dec  2 10:55:07 2005  Tim Janik  <timj@imendio.com>
      
              * tests/slice-test.c: extended to perform the benchmarking on the old
              memchunk code if 'O' is selected.
      
              * tests/memchunks.c: new file which contains the old GLib mem chunks
              implementation with prefix old_mem_chunk_.
      
              * tests/Makefile.am: added memchunks.c
      27312762
  16. 01 Dec, 2005 1 commit
    • Tim Janik's avatar
      new slice allocator implementation. · 733b1789
      Tim Janik authored
      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].
      733b1789