diff options
author | Jason Evans <je@fb.com> | 2012-02-13 18:56:17 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2012-02-13 18:56:17 (GMT) |
commit | 4162627757889ea999264c2ddbc3c354768774e2 (patch) | |
tree | c0a4528bb29b5eb1b305bad15c13b248429041e3 /src/huge.c | |
parent | fd56043c53f1cd1335ae6d1c0ee86cc0fbb9f12e (diff) | |
download | jemalloc-4162627757889ea999264c2ddbc3c354768774e2.zip jemalloc-4162627757889ea999264c2ddbc3c354768774e2.tar.gz jemalloc-4162627757889ea999264c2ddbc3c354768774e2.tar.bz2 |
Remove the swap feature.
Remove the swap feature, which enabled per application swap files. In
practice this feature has not proven itself useful to users.
Diffstat (limited to 'src/huge.c')
-rw-r--r-- | src/huge.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -212,13 +212,11 @@ huge_ralloc(void *ptr, size_t oldsize, size_t size, size_t extra, /* * Use mremap(2) if this is a huge-->huge reallocation, and neither the - * source nor the destination are in swap or dss. + * source nor the destination are in dss. */ #ifdef JEMALLOC_MREMAP_FIXED - if (oldsize >= chunksize && (config_swap == false || swap_enabled == - false || (chunk_in_swap(ptr) == false && chunk_in_swap(ret) == - false)) && (config_dss == false || (chunk_in_dss(ptr) == false && - chunk_in_dss(ret) == false))) { + if (oldsize >= chunksize && (config_dss == false || (chunk_in_dss(ptr) + == false && chunk_in_dss(ret) == false))) { size_t newsize = huge_salloc(ret); /* @@ -280,7 +278,7 @@ huge_dalloc(void *ptr, bool unmap) malloc_mutex_unlock(&huge_mtx); - if (unmap && config_fill && (config_swap || config_dss) && opt_junk) + if (unmap && config_fill && config_dss && opt_junk) memset(node->addr, 0x5a, node->size); chunk_dealloc(node->addr, node->size, unmap); |