more useful options | |
PerlMonks |
Re^4: out of memory problem after undefby BrowserUk (Patriarch) |
on Dec 03, 2008 at 23:55 UTC ( [id://727834]=note: print w/replies, xml ) | Need Help?? |
I had similar thoughts. This is flying in the dark a bit as I've no real idea if the CRT malloc uses the process heap or another heap or heaps. I tried using the following apis to try and compact the heap after the AoH is undef'd:
It does something, and takes quite a while doing it, but the result is that the largest contiguous chunk after compaction (of the process heap) is a little over 1MB which isn't enough to make any difference. Looking at the process memory map, there appear to be multiple heaps, but I haven't worked out a way of determining which is the process heap. One possibility is to enumerate all the heaps and run HeapCompact() on them all. Besides being slow, I'm not sure that it would achieve very much? Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|