Re: Memory de-allocation question

new topic     » goto parent     » topic index » view thread      » older message » newer message

OOPS, I may have slightly mis-spoke. What I probably should have said is: "Phix immediately recycles and makes available for re-use by the same application".
As yet, Phix never actually returns any memory to the OS except at program termination, though I doubt that's really an issue, 'cept for what Task Manager shows.
Should it ever be needed, it is unlikely to be particularly tricky to add a new builtin, say free_memory() or release_memory(), that invokes HeapFree or libc/free.
If you were thinking about stalls, as I suspect you were, all Phix citizens send stuff to the recycle centre, instead of littering or putting bins out for the binman.
Technically and pedantically speaking that's probably not true under pwa/p2js, since in a browser JavaScript is simply going to do whatever JavaScript does.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu