[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: doc on memory management
From: |
Vincent Pelletier |
Subject: |
Re: doc on memory management |
Date: |
Wed, 03 Aug 2005 22:14:58 +0200 |
User-agent: |
Debian Thunderbird 1.0.6 (X11/20050801) |
-----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