[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/54050: malloc_usable_size() is provided on recent NetBSD-current, however malloc.h has no prototype
The following reply was made to PR lib/54050; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
Subject: Re: lib/54050: malloc_usable_size() is provided on recent
NetBSD-current, however malloc.h has no prototype
Date: Tue, 12 Mar 2019 13:41:31 +0100
On Tue, Mar 12, 2019 at 12:35:00PM +0000, Kamil Rytarowski wrote:
> I disagree, I do find the statistics API useful for part of external
> software. At some point of time this API would allow me to port an
> additional software at all as test-suite required mallctl interfaces to
> validate the code (LLVM scudo hardened allocator).
I strongly agree with Joerg here: it should not be part of libc.
Most software abuses this interface (c.f. firefox about:memmory) and
anything that really needs more than the C standard should use its own
malloc library that provides whatever it needs without tying our libc
to that particular malloc implementation.
I have no problem with us proivding a libjemalloc.so.* from the same
source we build the intree libc stuff and exposing the interface there,
but we may stop providing that shared lib in future releases.
Main Index |
Thread Index |