From cbc3697ddab94153f508b88d226c33dab9c368cf Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Thu, 3 Mar 2016 01:43:36 +0000 Subject: [PATCH] Restore support for decay time of -1 (no decay). --- contrib/jemalloc/src/arena.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/jemalloc/src/arena.c b/contrib/jemalloc/src/arena.c index e0462e4b0caf..8e4b042c2026 100644 --- a/contrib/jemalloc/src/arena.c +++ b/contrib/jemalloc/src/arena.c @@ -1352,7 +1352,11 @@ static bool arena_decay_time_valid(ssize_t decay_time) { - return (decay_time >= -1 && (uint64_t)decay_time <= NSTIME_SEC_MAX); + if (decay_time < -1) + return (false); + if (decay_time == -1 || (uint64_t)decay_time <= NSTIME_SEC_MAX) + return (true); + return (false); } ssize_t