From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 76B61385455D; Thu, 15 Dec 2022 10:45:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76B61385455D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671101137; bh=45orGmK3xVtYe8S4o/L4bwVVA6G0EH/G53ZKKO5ndUk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IfrhUehDulqleDuTsSzDbiVrTuuEwgQr174y8fWOI3bOITALt1znwuEYEB2vBDhcI f6edNnMISH2R+AttnywSJEICDPmJgmxxSKPC3WERBt8IvQnfa2cy+pqSL78o0eUwCW KsAbZktmRZqmI4gguv+xSuj6HbwprnOxSq62wZi8= From: "nsz at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug malloc/14581] memalign allocations are often not reused after free Date: Thu, 15 Dec 2022 10:45:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: 2.15 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: nsz at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dj at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D14581 --- Comment #24 from Szabolcs Nagy --- (In reply to dj@redhat.com from comment #22) > I did a bunch of testing with this example, but didn't see continued grow= th. > Typically, after a few loops, malloc learned to use one of the large chun= ks ok after some tries it seems i don't get large vm usage on x86_64 with stat= ic linking, but if i add use(malloc(12345)); at the begining of main then i do. so it seems the initial heap state matte= rs (which can be different between static/dynamic linking or depend on the environment). --=20 You are receiving this mail because: You are on the CC list for the bug.=