Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 cooling their heels in the Monastery: (7)
As of 2014-12-21 18:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls