Re: [PATCH] Huge changes in mm.c

2005-07-11 Thread Vincent Pelletier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marco Gerards wrote: > What do you mean with defragmenting? I think you mean joining freed > regions, which should be done at the time it is freed. I always > thought that was the case already. I'll add the line, and I might change the defrag functi

Re: [PATCH] Huge changes in mm.c

2005-07-11 Thread Vincent Guffens
Vincent Pelletier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. In my attempt to port grub 2 to usparc, I had big problems with all the memory allocation things, so I decided to rewrite the functions after reading them (I wasn't able to understand at all 20% of the code). Some comme

Re: [PATCH] Huge changes in mm.c

2005-07-11 Thread Marco Gerards
Vincent Pelletier <[EMAIL PROTECTED]> writes: Hi Vincent, > I've added a defrag function that merges consecutive free chunks. It's > pretty fast (O(N), N=number of chunks) but I only call it when needed... > Maybe could it be interesting to call it on each grub_free(). What do you mean with defr

[PATCH] Huge changes in mm.c

2005-07-11 Thread Vincent Pelletier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. In my attempt to port grub 2 to usparc, I had big problems with all the memory allocation things, so I decided to rewrite the functions after reading them (I wasn't able to understand at all 20% of the code). Some comments : It *seems* that befor