in reply to Re^2: Memory reusability
in thread Memory reusability

Because then perl would actually have to make the appropriate system calls to give memory back.

Perl should just use standard free(3) function and this function will make appropriate system call to return memory to OS.

Replies are listed 'Best First'.
Re^4: Memory reusability
by JavaFan (Canon) on Aug 12, 2009 at 19:43 UTC
    Whether free(3) returns memory depends on the OS. And whether perl calls free(3) depends on whether you build perl with its own malloc implementation, or whether it's using the system one. Which one is used depends on the setting of the usemymalloc configuration flag, and, in the absence of the flag, whatever hint is set for your OS in the hints directory.