From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,195cfda04e416f67 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-06 20:50:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny02.gnilink.net.POSTED!53ab2750!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030611 Thunderbird/0.1a X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT and Memory Maps? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 07 Jul 2003 03:50:48 GMT NNTP-Posting-Host: 162.83.152.221 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny02.gnilink.net 1057549848 162.83.152.221 (Sun, 06 Jul 2003 23:50:48 EDT) NNTP-Posting-Date: Sun, 06 Jul 2003 23:50:48 EDT Xref: archiver1.google.com comp.lang.ada:40093 Date: 2003-07-07T03:50:48+00:00 List-Id: Simon Wright wrote: > I would be very surprised if GNAT ever chose to use mmap -- how would > it know which file to map? The traditional choice is /dev/zero, which provides an infinitely long stream of zero bytes. The idea behind using mmap() rather than sbrk() to acquire memory is that you can mmap multiple regions, and when you release such a region, memory is returned to the operating system rather than remaining allocated to the program.