From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12373 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Golovin Newsgroups: gmane.linux.lib.musl.general Subject: Re: [feature request] add mallinfo support Date: Thu, 18 Jan 2018 14:10:54 +0200 Message-ID: <3425291516277454@web18o.yandex.ru> References: <20180117174325.GP1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1516277367 22635 195.159.176.226 (18 Jan 2018 12:09:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2018 12:09:27 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-12389-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jan 18 13:09:23 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ec90E-0004ge-TF for gllmg-musl@m.gmane.org; Thu, 18 Jan 2018 13:09:07 +0100 Original-Received: (qmail 18138 invoked by uid 550); 18 Jan 2018 12:11:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18120 invoked from network); 18 Jan 2018 12:11:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golovin.in; s=mail; t=1516277455; bh=HxYe3IfnFTGSxZWXC3yzpLvK0GerLy0hMO5fPzFJURQ=; h=From:To:In-Reply-To:References:Subject:Message-Id:Date; b=XSGvbyUKozfsiUzDm2pqSCF/DSSkp50EeYl8qzvtpXM+v4RaqirgK4xIoIUBq5/9d bAqHL/napthvv0EJejVOjoQ5YUaUoF6uJD7eXkM9vi4aFOPGV+Tesd+biscwEuuqGr NGRHfYDmp67AbeyJmNDICBIaicg+cfzwIYjzUJiI= Authentication-Results: mxback11j.mail.yandex.net; dkim=pass header.i=@golovin.in In-Reply-To: X-Mailer: Yamail [ http://yandex.ru ] 5.0 Xref: news.gmane.org gmane.linux.lib.musl.general:12373 Archived-At: > I tried to search the mailing list (or musl website for a bug tracker) without any luck. There is no bugtracker at the moment. This mailing list kinda acts as one, but having something powerful like Bugzilla or at least GitHub issues may be beneficial for the development. Regards, Dmitry 18.01.2018, 13:58, "Gonzalo Brito Gadeschi" : > Thanks for the quick reply. > >> Omission of mallinfo is largely intentional. > > Makes sense, it would have saved me some time if this > information would be added to the FAQ. I tried to search > the mailing list (or musl website for a bug tracker) without > any luck. > >> The API is fundamentally > broken (using type int which cannot represent sizes) and tracking the > information it provides imposes nontrivial costs on the malloc > implementation. > > I agree. > >> http://www.openwall.com/lists/musl/2013/11/09/2 > I went through the thread and could not find the piece of information > that lead to that opinion (maybe I am just generally bad at mailing lists). > > Rich Felker (you :D) argued: > >> The main reason I'd want to provide a dummy is if >> there are glibc binaries using it. The range of the counters >> is fairly irrelevant; keeping track of the information is prohibitively >> slow anyway since it would have to be synchronized between >> threads on each call to malloc/free. (glibc does some poor >> hack keeping this info per-arena and summarizing it when > mallinfo is called, I think...) > > And Szabolcs Nagy just answered: > >> i see > > That's all I found there. > > FWIW I wouldn't mind if mallinfo on musl > would just return a zeroed mallinfo struct, > because I don't even know if the function is > called at all: I just know that the code won't > compile without those symbols. > > Arguably, I can do that workaround myself, > so I'll just do that for now. > > Thanks again for the quick reply! > Gonzalo