No, it isn't quibbling over semantics. Nearly all operating systems have facilities to unmap pages from a process' memory space and give them back to the OS. Not swap them out, not ignore them and let them get compressed, give them back. VMS, Win32, MacOS, OS/3x0 (which is rather older than Unix), AmigaOS, RSTS/E, RSX, RT-11. (I believe TOPS-10 and TOPS-20 did as well, but I'm not positive) Unix was, for quite a while, relatively rare in the multi-user OS realm as a system that wouldn't unmap pages, though the general design of Unix programs minimized the annoyance it caused.

Even still, Most Unix and Unix-like systems have caught up with the '80s and will, in fact, unmap pages, freeing them back to the OS and taking them out of the process' memory space. Perl will give back space to the OS if the OS or C libraries support that and a memory block is unused.

Generally speaking, there's nothing wrong with having a series of discontiguous memory chunks mapped into a process. Happens all the time on many systems, and it works just fine. (Holes in mapped address space actually make a number of things mildly safer, which is also nice)


In reply to Re: Re: Re: Re: Hash Entry Deallocation by Elian
in thread Hash Entry Deallocation by Pearte

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.