Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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.


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.


      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.

      Perl already does.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2015-03-29 04:38 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (630 votes), past polls