At 11:46 PM -0400 6/16/04, Luc Le Blanc wrote:
I consecutively allocate 3 chunks of 10-50Kb each. In order to be able
to resize them when need arises, I use handles. When I later resize one
of them, thinking for small devices with little heap, should I unlock
the other adjacent chunks to give more freedom to the OS in this
operation? If so, can I only unlock the chunks allocated after the one
that is to be resized?

For chunks that large, if you are in a position to do so, then I would say yes, unlock all three. It couldn't hurt, and can only do good.


Unlocking the the lower block would help if the heap needs to be compacted. If you don't unlock it, you may fragment the heap in such a way that you can't resize the middle block.

-- Keith

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to