summaryrefslogtreecommitdiff
path: root/glib/gslice.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-05-09 15:44:35 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2018-05-09 15:44:35 +0100
commit7d0567ac84c97e5357b8997a4c9e4fa7541c917b (patch)
tree023899e388a790fbd9764a5408a4e799a431fb74 /glib/gslice.h
parent3d2ab4680dd056e0731220fa387cc79456ae01cc (diff)
downloadglib-slice-jemalloc.tar.gz
Allow replacing the GSlice allocator with jemallocslice-jemalloc
The jemalloc allocator implementation comes from the BSD world, and it's used in various places, including: * Mozilla * Rust * Android * Cassandra * MariaDB * Redis More info: http://jemalloc.net Currently, support is enabled by default on Linux, but you have to opt in using `G_SLICE=use-jemalloc`.
Diffstat (limited to 'glib/gslice.h')
-rw-r--r--glib/gslice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/glib/gslice.h b/glib/gslice.h
index 80762761f..3b1a9cbf3 100644
--- a/glib/gslice.h
+++ b/glib/gslice.h
@@ -79,7 +79,8 @@ typedef enum {
G_SLICE_CONFIG_WORKING_SET_MSECS,
G_SLICE_CONFIG_COLOR_INCREMENT,
G_SLICE_CONFIG_CHUNK_SIZES,
- G_SLICE_CONFIG_CONTENTION_COUNTER
+ G_SLICE_CONFIG_CONTENTION_COUNTER,
+ G_SLICE_CONFIG_USE_JEMALLOC
} GSliceConfig;
GLIB_DEPRECATED_IN_2_34