Subject:
|
Re: My problems with adding a Best Fit algorithm for memory management to kernel/mm.c
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sat, 6 Dec 2003 20:31:34 GMT
|
Viewed:
|
4394 times
|
| |
| |
In lugnet.robotics.rcx.legos, Mark Riley wrote:
> BTW, you can delete these two lines of intialization (i.e. lines 12 & 15 in the
> above function) as the intialized value gets clobbered on finding the first
> suitable sized block:
>
> 12) mm_best_free=ptr;
> 15) mm_best_free++; //this must point to the size portion of the
>
> If you never find a suitable block, mm_best_free isn't used for anything either.
>
> Mark
Yeah, very true. Those lines where in there becuase of the error I originally
had in my code, but since my code changed (and is correct) those lines are not
needed).
Thanks
Mike
|
|
Message is in Reply To:
14 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|