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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: newbie: can't read fast enough... :-) memory leaks... Date: Thu, 04 Sep 2014 14:28:58 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <479b2efe-0238-4b2a-8b05-cb1a0b4a57e5@googlegroups.com> <1409739464.7121.235.camel@obry.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1409855312 3733 192.74.137.71 (4 Sep 2014 18:28:32 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 4 Sep 2014 18:28:32 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:0/uSsrle/YLZ3ml0yTqKWkrm84w= Xref: number.nntp.dca.giganews.com comp.lang.ada:188873 Date: 2014-09-04T14:28:58-04:00 List-Id: Brad Moore writes: > I wonder how many implementations are out there that do not have a > default storage pool that reclaims the storage of a collection of an > nested access type when the master associated with of the access type > declaration is exited. I know of only one compiler that frees local collections automatically -- Rational/IBM/Atego. Unless you use a Storage_Size or Storage_Pool clause, which works in all compilers, AFAIK. > I'm pretty sure that GNAT does for Windows and Linux, but perhaps they > have a minimalist runtime for certain targets where this is not needed > or desired? No, GNAT doesn't do it. I don't think it should be automatic: if you want that functionality, use a storage pool. - Bob