A method for managing computer memory, in accordance with the present
invention, includes maintaining multiple sets of free blocks of memory
wherein a free block is added to a set based on its size. In response to
a request for a block of a request size, a set of blocks is searched for
a free block which is at least as large as the request size but smaller
than the request size plus a threshold. If such a block is found, the
block is allocated in its entirety.