From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3479 invoked by alias); 20 Oct 2013 21:08:34 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 3429 invoked by uid 48); 20 Oct 2013 21:08:29 -0000 From: "neleai at seznam dot cz" To: glibc-bugs@sourceware.org Subject: [Bug malloc/14483] obstack uses int for allocation sizes Date: Sun, 20 Oct 2013 21:08:00 -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.16 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: neleai at seznam dot cz X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg00253.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=14483 Ondrej Bilka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |neleai at seznam dot cz Severity|normal |enhancement --- Comment #2 from Ondrej Bilka --- Returning a stack sie as size_t could be feasible. However extending arguments from ints is nonsense, obstack is used for quick allocation of lot of small objects. You can have only few large objects until you run out of memory, Also returning huge chunks of memory to system looks better than keeping them in obstack. -- You are receiving this mail because: You are on the CC list for the bug.