-----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
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel