lkundrak has asked for the wisdom of the Perl Monks concerning the following question:
Anyone has an explanation for that, or pointer to documentation before I dig into the code?$ strace -e mmap2,munmap perl -e '{"x" x 1048576}{"x" x 1048576}{"x" x + 1048576}' 2>&1 |tail -6 mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, +-1, 0) = 0xb740c000 mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, +-1, 0) = 0xb730b000 mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, +-1, 0) = 0xb720a000 munmap(0xb720a000, 1052672) = 0 munmap(0xb730b000, 1052672) = 0 munmap(0xb740c000, 1052672) = 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Freeing memory, revisited (Linux)
by Anonymous Monk on May 05, 2011 at 11:16 UTC | |
|
Re: Freeing memory, revisited (Linux)
by dave_the_m (Monsignor) on May 05, 2011 at 12:55 UTC | |
by Eliya (Vicar) on May 05, 2011 at 14:31 UTC | |
by dave_the_m (Monsignor) on May 05, 2011 at 15:09 UTC | |
by Eliya (Vicar) on May 05, 2011 at 15:47 UTC | |
by dave_the_m (Monsignor) on May 05, 2011 at 16:44 UTC | |
|
Re: Freeing memory, revisited (Linux)
by anonymized user 468275 (Curate) on May 05, 2011 at 11:44 UTC |