From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89751 invoked by alias); 31 Mar 2017 07:55:23 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 89723 invoked by uid 89); 31 Mar 2017 07:55:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f179.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=OpYbGRMaEPnnvz1Sk03GTEbGgTRpkTnufF+3w56IDDw=; b=qaJEdhw2po1S/jo/gHpKU2EsBC24TZLF8HBIVw+4AJuIY574jM1WOmdVq0C6IF53TT rNK5/RS3zawEGpnou3nwfidjBdFUIxNk8CBNLF1HyUVNv2ZhktyssUBrFcnI/Iy6RDlf +SOJhCO67yL0l4ly7A/eaonYYKVVUq6Hf6MZFXJ7krTP/vsAuZur9xj4ZFDWEHrFW7L8 FuQiPXifUn+bL71sGWxD5MVfUFyK2H2wUFkmvHGj1UrHxI0h30SVTRvaxw8Uay44fAmv HtqW+iYkEWXeZm2RscWWOkyq0UZ1Hf6zKitNLHMUg30y+iLz/eeeCF+jzUK/rW+CJEUt 2fhg== X-Gm-Message-State: AFeK/H1DUhX5tMK0eoesPcpeJibzoGFdinNtVR1nzwvT33u4h/G3KAcILtA6WBu/7crY8Q== X-Received: by 10.223.157.11 with SMTP id k11mr1590551wre.28.1490946919814; Fri, 31 Mar 2017 00:55:19 -0700 (PDT) Date: Fri, 31 Mar 2017 07:55:00 -0000 From: "Wladimir J. van der Laan" To: libc-alpha@sourceware.org Cc: Florian Weimer Subject: [PATCH v2] Call the right helper function when setting mallopt M_ARENA_MAX Message-ID: <20170331075517.GA30779@amethyst.visucore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-SW-Source: 2017-03/txt/msg00714.txt.bz2 Fixes a typo introduced in commit be7991c0705e35b4d70a419d117addcd6c627319. This caused mallopt(M_ARENA_MAX) as well as the environment variable MALLOC_ARENA_MAX to not work as intended because it set the wrong internal parameter. [BZ# 21338] * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX instead of incorrect do_set_arena_test --- ChangeLog | 6 ++++++ malloc/malloc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) Changes: added BZ reference diff --git a/ChangeLog b/ChangeLog index eaf7bb1..daa6437 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-03-30 Wladimir van der Laan + + [BZ# 21338] + * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX + instead of incorrect do_set_arena_test. + 2017-03-30 Gabriel F. T. Gomes * math/math.h: Include bits/math-finite.h once per diff --git a/malloc/malloc.c b/malloc/malloc.c index 994a232..4c40e2e 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4904,7 +4904,7 @@ __libc_mallopt (int param_number, int value) case M_ARENA_MAX: if (value > 0) - do_set_arena_test (value); + do_set_arena_max (value); break; } __libc_lock_unlock (av->mutex); -- 2.7.4