summaryrefslogtreecommitdiffstats
path: root/include/jemalloc
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2016-02-23 00:20:56 (GMT)
committerJason Evans <je@fb.com>2016-02-23 00:47:34 (GMT)
commit0da8ce1e96bedff697f7133c8cfb328390b6d11d (patch)
treeef03b16e4f8f14c726b5597573cd2e4cd568bbfa /include/jemalloc
parent08551eee586eefa8c98f33b97679f259af50afab (diff)
downloadjemalloc-0da8ce1e96bedff697f7133c8cfb328390b6d11d.zip
jemalloc-0da8ce1e96bedff697f7133c8cfb328390b6d11d.tar.gz
jemalloc-0da8ce1e96bedff697f7133c8cfb328390b6d11d.tar.bz2
Use table lookup for run_quantize_{floor,ceil}().
Reduce run quantization overhead by generating lookup tables during bootstrapping, and using the tables for all subsequent run quantization.
Diffstat (limited to 'include/jemalloc')
-rw-r--r--include/jemalloc/internal/arena.h2
-rw-r--r--include/jemalloc/internal/private_symbols.txt1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/jemalloc/internal/arena.h b/include/jemalloc/internal/arena.h
index f98aeb8..8dc6852 100644
--- a/include/jemalloc/internal/arena.h
+++ b/include/jemalloc/internal/arena.h
@@ -494,7 +494,7 @@ extern size_t map_bias; /* Number of arena chunk header pages. */
extern size_t map_misc_offset;
extern size_t arena_maxrun; /* Max run size for arenas. */
extern size_t large_maxclass; /* Max large size class. */
-extern size_t small_maxrun; /* Max run size for small size classes. */
+extern size_t run_quantize_max; /* Max run_quantize_*() input. */
extern unsigned nlclasses; /* Number of large size classes. */
extern unsigned nhclasses; /* Number of huge size classes. */
diff --git a/include/jemalloc/internal/private_symbols.txt b/include/jemalloc/internal/private_symbols.txt
index 3e37a61..761aa75 100644
--- a/include/jemalloc/internal/private_symbols.txt
+++ b/include/jemalloc/internal/private_symbols.txt
@@ -447,6 +447,7 @@ rtree_val_read
rtree_val_write
run_quantize_ceil
run_quantize_floor
+run_quantize_max
s2u
s2u_compute
s2u_lookup