Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: make perl release memory

by broquaint (Abbot)
on Jun 19, 2003 at 14:48 UTC ( #267212=note: print w/ replies, xml ) Need Help??


in reply to make perl release memory

Unless you're OS supports processes releasing memory back to the system while running this can't be done. See. Memory usage and perl for another discussion on this very topic.
HTH

_________
broquaint


Comment on Re: make perl release memory
Re: Re: make perl release memory
by batkins (Chaplain) on Jun 19, 2003 at 14:59 UTC
    How about Win32? Can't I just call free()?

    milkbone - perl/tk instant messaging - it's the only way to fly

      Using free(ptr) will just make available the memory pointed to by ptr in the process' memory pool, not to the OS at large. This memory freeing behaviour isn't Win32 specific, but applies to most modern OSes.
      HTH

      _________
      broquaint

      Well, a cursory test of:

      main() { char *foo = (char *)malloc(1000000); getch(); free(foo); getch() }
      Examined in task manager would suggest not, of course this is highly unscientific and someone else might know different.

      /J\
      
      Perl already does.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://267212]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-10-21 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (106 votes), past polls