Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2002 11:12:15 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Alfred Perlstein <bright@mu.org>
Cc:        David Greenman <dg@root.com>, John Indra <maverick@office.naver.co.id>, freebsd-current@FreeBSD.ORG
Subject:   Re: malloc() and the stock Perl in -CURRENT (and -STABLE) 
Message-ID:  <1354.1016100735@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 14 Mar 2002 02:03:03 PST." <20020314100303.GM74829@elvis.mu.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20020314100303.GM74829@elvis.mu.org>, Alfred Perlstein writes:

>> It would be much more valuable to add a 
>> 	mremap(void *from, void *to, size_t length);
>> 
>> since that can _solve_ the problem in _all_ cases, rather than
>> add more or less byzantine workarounds for silly benchmarks.
>
>You're right that it would be a better optimization, however it's
>much more code to write than simply passing a flag down to the code
>responsible for the allocation especially when you _know_ you'll
>need it.

Since when has going that extra mile to do it right been the wrong
thing to do in FreeBSD ?  :-)

And everybody with VM clue I've asked says it would be trivial to
flip two page-table entries, so for all I care it can be

	mexchangemapping(void *from, void *to, size_t length)

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1354.1016100735>