PDA

View Full Version : Dynamic heap post update 2.0


SoS
12-07-2005, 08:04 AM
I just noticed something interesting! Prior to installing the update, a soft reset would completely restore and defrag the dynamic ram such that the largest available block was very close to the total heap available. Now when I reset, I get something like 4.2Mb free with only 2.5Mb as the largest block (these numbers are reported by PalmPDF which is how I first noticed). Can someone who hasnt installed the update (and who is running palmpdf confirm this??)

wierd and I remember Henk aka Metaview (the palmpdf developer) noting that on his TX, only half the dyn heap seems to be in a single block after reset, as is now the case for the updated LD. I wonder if Dmitry (the dynamic heap meister) has any comment on this??

dmitrygr
12-07-2005, 10:40 AM
I just noticed something interesting! Prior to installing the update, a soft reset would completely restore and defrag the dynamic ram such that the largest available block was very close to the total heap available. Now when I reset, I get something like 4.2Mb free with only 2.5Mb as the largest block (these numbers are reported by PalmPDF which is how I first noticed). Can someone who hasnt installed the update (and who is running palmpdf confirm this??)

wierd and I remember Henk aka Metaview (the palmpdf developer) noting that on his TX, only half the dyn heap seems to be in a single block after reset, as is now the case for the updated LD. I wonder if Dmitry (the dynamic heap meister) has any comment on this??


it is hard to defrag the heap as most (if not all things in there are non-movable chunks. I do have control of wehre things are allocated (i can force all (or some) allocs specifically to begining or end of heap but i doubt this woudl help unless you track down every alloc and tell me who, when, and why allocates the offending chunk in the middle of the heap.

I did however notice this problem and i made a very specific to my software configuration fix. if you are very risky, you can try it. worst case it will force a hard reset, best case it will work.