Christian Thaeter
|
9feb01e4fe
|
add hooks for malloc/free to mpool, add (no-op) purge function
We will need this to hook the resourcecollector in
|
2010-02-07 20:53:51 +01:00 |
|
Christian Thaeter
|
8254b3fbda
|
updates for nobug 201001.2
dumping got a new api, surprisingly everything else works...
|
2010-01-22 23:21:48 +01:00 |
|
Christian Thaeter
|
f73cc47da6
|
Fix all things which broke compilation with NoBug 200909.1
|
2009-09-04 08:53:03 +02:00 |
|
Christian Thaeter
|
d50d9a30f2
|
FIX: compiler warnings in mpool.c
Some gcc versions warn about type aliasing errors here, by using char*
this is fixed (and actually the right type here).
|
2009-09-04 08:02:16 +02:00 |
|
Christian Thaeter
|
52ac7bdc5e
|
FIX: bogus pointer dereference causing gcc to barf
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3) reported:
./src/lib/mpool.c: In function ‘bitmap_bit_get_nth’:
./src/lib/mpool.c:119: warning: dereferencing type-punned
pointer will break strict-aliasing rules
|
2009-06-19 04:22:29 +02:00 |
|
Christian Thaeter
|
64c1238445
|
FIX: mpool: macro for constants depending on host wordsize
This might fix http://issues.lumiera.org/ticket/136 I have no 32bit
system to validate this.
|
2009-06-06 16:05:34 +02:00 |
|
Christian Thaeter
|
58f1fbe3a8
|
mpool: completion
fix tests, add some benchmarks
finished documentation, cosmetics, cleanup
|
2009-06-04 18:11:45 +02:00 |
|
Christian Thaeter
|
92271ba1c1
|
mpool: add an alloc_near() function which takes a explicit hint for locality
|
2009-06-04 18:11:44 +02:00 |
|
Christian Thaeter
|
0dc0d18703
|
mpool: ldiv() division bites the dust in favor of some bitops
before:
1,747,160,336 PROGRAM TOTALS
after:
1,371,806,087 PROGRAM TOTALS
|
2009-06-04 18:11:44 +02:00 |
|
Christian Thaeter
|
9ed817df97
|
mpool: precalculate cluster size to avoid excess recalculations
Callgrind before:
1,963,501,246 PROGRAM TOTALS
After:
1,747,160,336 PROGRAM TOTALS
|
2009-06-04 18:11:44 +02:00 |
|
Christian Thaeter
|
29a1a6a7a0
|
mpool: some pending cosmetics an trace points
|
2009-06-04 18:11:27 +02:00 |
|
Christian Thaeter
|
2a9d59ccd0
|
WIP: pooled allocator, initial version
* creating and allocating, freeing elements
* live objects will be destructed when a mpool gets destroyed and a
destructor was set up
|
2009-06-04 18:10:25 +02:00 |
|