diff options
| author | Jason Evans <jasone@canonware.com> | 2015-08-04 10:49:46 -0700 |
|---|---|---|
| committer | Jason Evans <jasone@canonware.com> | 2015-08-07 00:50:58 -0700 |
| commit | 8fadb1a8c2d0219aded566bc5fac7d29cff9bb67 (patch) | |
| tree | 2bb5ef64b257a1cbcf6c4880f23f24ef9d989e13 /src/base.c | |
| parent | 5716d97f7575708453ca477651eff6f1ac653dd1 (diff) | |
| download | platform_external_jemalloc_new-8fadb1a8c2d0219aded566bc5fac7d29cff9bb67.tar.gz platform_external_jemalloc_new-8fadb1a8c2d0219aded566bc5fac7d29cff9bb67.tar.bz2 platform_external_jemalloc_new-8fadb1a8c2d0219aded566bc5fac7d29cff9bb67.zip | |
Implement chunk hook support for page run commit/decommit.
Cascade from decommit to purge when purging unused dirty pages, so that
it is possible to decommit cleaned memory rather than just purging. For
non-Windows debug builds, decommit runs rather than purging them, since
this causes access of deallocated runs to segfault.
This resolves #251.
Diffstat (limited to 'src/base.c')
| -rw-r--r-- | src/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -90,7 +90,7 @@ base_alloc(size_t size) csize = CACHELINE_CEILING(size); usize = s2u(csize); - extent_node_init(&key, NULL, NULL, usize, true, false); + extent_node_init(&key, NULL, NULL, usize, false, false); malloc_mutex_lock(&base_mtx); node = extent_tree_szad_nsearch(&base_avail_szad, &key); if (node != NULL) { |
