summaryrefslogtreecommitdiffstats
path: root/src/chunk.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-10-12 18:49:19 (GMT)
committerJason Evans <jasone@canonware.com>2016-10-12 18:55:43 (GMT)
commit9acd5cf178eca9bc8a7f36a8c392b799a120bcbf (patch)
treeb32689315e91e15519359ab6e53f7a9b13e8b3b0 /src/chunk.c
parent63b5657aa566ceab270ff6e9d4f366233d2d0b79 (diff)
downloadjemalloc-9acd5cf178eca9bc8a7f36a8c392b799a120bcbf.zip
jemalloc-9acd5cf178eca9bc8a7f36a8c392b799a120bcbf.tar.gz
jemalloc-9acd5cf178eca9bc8a7f36a8c392b799a120bcbf.tar.bz2
Remove all vestiges of chunks.
Remove mallctls: - opt.lg_chunk - stats.cactive This resolves #464.
Diffstat (limited to 'src/chunk.c')
-rw-r--r--src/chunk.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/chunk.c b/src/chunk.c
deleted file mode 100644
index d750f71..0000000
--- a/src/chunk.c
+++ /dev/null
@@ -1,51 +0,0 @@
-#define JEMALLOC_CHUNK_C_
-#include "jemalloc/internal/jemalloc_internal.h"
-
-/******************************************************************************/
-/* Data. */
-
-const char *opt_dss = DSS_DEFAULT;
-size_t opt_lg_chunk = 0;
-
-/* Various chunk-related settings. */
-size_t chunksize;
-size_t chunksize_mask; /* (chunksize - 1). */
-size_t chunk_npages;
-
-/******************************************************************************/
-
-bool
-chunk_boot(void)
-{
-#ifdef _WIN32
- SYSTEM_INFO info;
- GetSystemInfo(&info);
-
- /*
- * Verify actual page size is equal to or an integral multiple of
- * configured page size.
- */
- if (info.dwPageSize & ((1U << LG_PAGE) - 1))
- return (true);
-
- /*
- * Configure chunksize (if not set) to match granularity (usually 64K),
- * so pages_map will always take fast path.
- */
- if (!opt_lg_chunk) {
- opt_lg_chunk = ffs_u((unsigned)info.dwAllocationGranularity)
- - 1;
- }
-#else
- if (!opt_lg_chunk)
- opt_lg_chunk = LG_CHUNK_DEFAULT;
-#endif
-
- /* Set variables according to the value of opt_lg_chunk. */
- chunksize = (ZU(1) << opt_lg_chunk);
- assert(chunksize >= PAGE);
- chunksize_mask = chunksize - 1;
- chunk_npages = (chunksize >> LG_PAGE);
-
- return (false);
-}