summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-03-03 11:54:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-03-03 11:54:51 (GMT)
commit7f25bd904e483ca90548c7001839a102090eb290 (patch)
treed19c48beb00ce3d3bbc38e5f801896f9ae406f99 /src/glibext
parent28ef52f37784817c6590cdafc94aa9b356123802 (diff)
Use a global allocator to store (partial) matches.
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/umemslice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glibext/umemslice.c b/src/glibext/umemslice.c
index 1bdb4fe..40088ef 100644
--- a/src/glibext/umemslice.c
+++ b/src/glibext/umemslice.c
@@ -38,7 +38,7 @@
#define SLAB_SIZE (8 * 1024 * 1024)
-//#define SLAB_SIZE (32 * 1024)
+
/* Alloue un espace pour un nouveau slab en mémoire. */
static slice_slab_info_t *create_slice_slab(size_t, size_t);
@@ -353,7 +353,7 @@ void *g_umem_slice_alloc(GUMemSlice *slice)
result = iter->data_end;
- *((unsigned long *)&iter->data_end) += slice->obj_size;
+ iter->data_end_ul += slice->obj_size;
return result;