From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E0Pm9-0001Er-6v for mharc-grub-devel@gnu.org; Wed, 03 Aug 2005 16:23:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E0Pm0-0001Bo-Pq for grub-devel@gnu.org; Wed, 03 Aug 2005 16:23:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E0Pls-00016H-OM for grub-devel@gnu.org; Wed, 03 Aug 2005 16:23:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0Plq-00012p-5p for grub-devel@gnu.org; Wed, 03 Aug 2005 16:23:22 -0400 Received: from [217.12.11.34] (helo=smtp003.mail.ukl.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1E0Prj-0001JZ-V3 for grub-devel@gnu.org; Wed, 03 Aug 2005 16:29:28 -0400 Received: (qmail 27067 invoked from network); 3 Aug 2005 20:15:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type:Content-Transfer-Encoding; b=ebnHNUJJxiCiHbyazuoFKHtyJKGcI0PrzsuMopF85aG5rn1l8G5c7ORtH/b+/XFtZlIA3LtUs69u+rb9sFqX/kMvVOtamPKquhl+SravOb/16fhR/TErsWjBV5gd1mR6sU7l7zc2fmyUj7x/lrMlgm/yGmLbVT+fJ4TQt8F4Psk= ; Received: from unknown (HELO ?192.168.0.2?) (subdino2004@83.203.227.160 with plain) by smtp003.mail.ukl.yahoo.com with SMTP; 3 Aug 2005 20:15:00 -0000 Message-ID: <42F125C2.3030703@yahoo.fr> Date: Wed, 03 Aug 2005 22:14:58 +0200 From: Vincent Pelletier User-Agent: Debian Thunderbird 1.0.6 (X11/20050801) X-Accept-Language: en-us, en MIME-Version: 1.0 To: The development of GRUB 2 References: <42EF862F.1080306@inma.ucl.ac.be> <42EF9CFB.7040804@yahoo.fr> <200508022241.16966.okuji@enbug.org> In-Reply-To: <200508022241.16966.okuji@enbug.org> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: doc on memory management X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 20:23:35 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yoshinori K. Okuji wrote: > I'm not sure if it is really meaningful. Only if you can prove that your > implementation improves something (such as memory efficiency), I will > incorporate it. The test case might be hard to make. The idea is : if (size > h->size && h->next->magic == FREE && size < h->size + h->next->size) { h->size += h->next->size + GRUB_MM_ALIGN; h->next = h->next->next; return h; } But should be done smarter, to avoid using a huge free chunk to just increase the size by, say, 1 byte... I'll do some tests. > The current implementation merges free regions. What is bad? Oops, I missed it (again). Vincent Pelletier -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC8SXBFEQoKRQyjtURAqdBAJ9fUKks5Vip45BsCeSBDrvzfUzuMACeKmT+ UyPhKLMNHvmBVqkskF5hL0E= =4LKn -----END PGP SIGNATURE----- ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com