aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-11-08 13:59:21 -0800
committerQi Wang <interwq@gmail.com>2017-11-08 16:33:30 -0800
commitb5d071c26697813bcceae320ba88dee2a2a73e51 (patch)
tree2846075de7523d98ba80369ca01cc3f64d21327c /include
parent6dd5681ab787b4153ad2fa425be72efece42d3c7 (diff)
downloadplatform_external_jemalloc_new-b5d071c26697813bcceae320ba88dee2a2a73e51.tar.gz
platform_external_jemalloc_new-b5d071c26697813bcceae320ba88dee2a2a73e51.tar.bz2
platform_external_jemalloc_new-b5d071c26697813bcceae320ba88dee2a2a73e51.zip
Fix unbounded increase in stash_decayed.
Added an upper bound on how many pages we can decay during the current run. Without this, decay could have unbounded increase in stashed, since other threads could add new pages into the extents.
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/extent_externs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/jemalloc/internal/extent_externs.h b/include/jemalloc/internal/extent_externs.h
index 9da5d010..132d8903 100644
--- a/include/jemalloc/internal/extent_externs.h
+++ b/include/jemalloc/internal/extent_externs.h
@@ -36,7 +36,8 @@ extent_t *extents_alloc(tsdn_t *tsdn, arena_t *arena,
void extents_dalloc(tsdn_t *tsdn, arena_t *arena,
extent_hooks_t **r_extent_hooks, extents_t *extents, extent_t *extent);
extent_t *extents_evict(tsdn_t *tsdn, arena_t *arena,
- extent_hooks_t **r_extent_hooks, extents_t *extents, size_t npages_min);
+ extent_hooks_t **r_extent_hooks, extents_t *extents, size_t npages_min,
+ size_t npages_max);
void extents_prefork(tsdn_t *tsdn, extents_t *extents);
void extents_postfork_parent(tsdn_t *tsdn, extents_t *extents);
void extents_postfork_child(tsdn_t *tsdn, extents_t *extents);