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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,13d6cd0af0d0d769 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-24 17:55:23 PST Path: nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!Germany.EU.net!EU.net!news.sprintlink.net!ionews.ionet.net!news From: kkrieser@ionet.net Newsgroups: comp.lang.ada Subject: Re: Does memory leak? Date: 25 Mar 1995 01:55:23 GMT Organization: Internet Oklahoma Message-ID: <3kvt6b$1ph@ionews.ionet.net> References: <3kopao$ekg@nef.ens.fr> Reply-To: kkrieser@ionet.net NNTP-Posting-Host: tsip13.ionet.net X-Newsreader: IBM NewsReader/2 v1.09 Date: 1995-03-25T01:55:23+00:00 List-Id: In , mjmeie@ss5.magec.com (Mike Meier) writes: >Duncan Sands (sands@clipper.ens.fr) wrote: > >In current reality, no Ada run-time environments that I'm aware of provide >automated garbage collection (unless you count deallocation of objects that >fall out of scope), including mainly Alsys and Rational/Verdix. I do know that, under Alsys Ada, you have to worry in about leaking memory. In a project I worked on, we had a loop similar in format to: loop Result := Function_Call_returning_variant_record; end loop; We found that there was no reclaimation of memory from the function call temporary. It went away when we surrounded the call with a begin end block. It turned out that Alsys only reclaimed memory when a block went out of scope. After running several hours, megabytes of memory was being eaten up. ------------------------------------- -- Kevin Krieser -- kkrieser@ionet.net