From owner-freebsd-current Fri Mar 15 13:22:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 4B96E37B402 for ; Fri, 15 Mar 2002 13:22:07 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 8D4B65346; Fri, 15 Mar 2002 22:22:02 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: John Indra Cc: freebsd-current@FreeBSD.ORG Subject: Re: malloc() and the stock Perl in -CURRENT (and -STABLE) References: <20020314104525.B8244@office.naver.co.id> <40628.1016085846@critter.freebsd.dk> <20020314132451.F8244@office.naver.co.id> From: Dag-Erling Smorgrav Date: 15 Mar 2002 22:22:02 +0100 In-Reply-To: <20020314132451.F8244@office.naver.co.id> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Indra writes: > Glad to know that there is no problem with malloc() in -CURRENT. But I still > think that this must be addressed in Perl. So maybe, the stock Perl should > be built against its own malloc library? No! That would break anything that loads system libraries into Perl, like Authen::PAM, because you'd end up calling system malloc() followed by Perl free(), or the other way around. Please stop pretending this is a FreeBSD bug - it's a bug in Perl, which anally tries to conserve microscopic amounts of memory by growing strings in small increments instead of using the traditional (and far more efficient and elegant) 2n + 1 algorithm. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message