summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-04-08 21:17:57 (GMT)
committerJason Evans <jasone@canonware.com>2016-05-16 19:21:21 (GMT)
commit7bb00ae9d656b3d3ea9a01777cf1a13ab97f2430 (patch)
treeede82e7fc5816f183ffab27d1a28261410488b69 /test
parent226c446979ba88b5d5f05e6442c024d95c5656b0 (diff)
downloadjemalloc-7bb00ae9d656b3d3ea9a01777cf1a13ab97f2430.zip
jemalloc-7bb00ae9d656b3d3ea9a01777cf1a13ab97f2430.tar.gz
jemalloc-7bb00ae9d656b3d3ea9a01777cf1a13ab97f2430.tar.bz2
Refactor runs_avail.
Use pszind_t size classes rather than szind_t size classes, and always reserve space for NPSIZES elements. This removes unused heaps that are not multiples of the page size, and adds (currently) unused heaps for all huge size classes, with the immediate benefit that the size of arena_t allocations is constant (no longer dependent on chunk size).
Diffstat (limited to 'test')
-rw-r--r--test/unit/run_quantize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/run_quantize.c b/test/unit/run_quantize.c
index f6a2f74..45f3201 100644
--- a/test/unit/run_quantize.c
+++ b/test/unit/run_quantize.c
@@ -111,7 +111,7 @@ TEST_BEGIN(test_monotonic)
floor_prev = 0;
ceil_prev = 0;
- for (i = 1; i < run_quantize_max >> LG_PAGE; i++) {
+ for (i = 1; i <= large_maxclass >> LG_PAGE; i++) {
size_t run_size, floor, ceil;
run_size = i << LG_PAGE;