diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-05-09 15:44:35 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-05-09 15:44:35 +0100 |
commit | 7d0567ac84c97e5357b8997a4c9e4fa7541c917b (patch) | |
tree | 023899e388a790fbd9764a5408a4e799a431fb74 /glib/gslice.h | |
parent | 3d2ab4680dd056e0731220fa387cc79456ae01cc (diff) | |
download | glib-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.h | 3 |
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 |