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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a46843ba8cee64d2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-21 02:05:25 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: dinamic object reclamation Date: 19 Sep 2001 20:51:08 +0100 Organization: Pushface Message-ID: References: <9oa69d$6ej$1@ns.omskelecom.ru> <9oahqo$3on$1@ns.omskelecom.ru> <9oangi$dp8$1@ns.omskelecom.ru> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 1001049903 nnrp-10:24940 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 19 Sep 2001 19:51:08 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:13224 Date: 2001-09-19T19:51:08+00:00 List-Id: "Anisimkov" writes: > > >But there is more then limit of memory usage > > >becouse I wrote > > > for Block_Ptr'Storage_Size use Integer'Last; > > >inside of procedure "act". > > > > > >and memory is not leaking now. > > > > >It looks like a trick. > > > > Well, it is. But it is clearly one that was placed into the language on > purpose. > > :-) > > The one reasonable explanation i can imagine is > that when we declearing > for Block_Ptr'Storage_Size use Integer'Last; > GNAT creates storage_pool locally in the "act" procedure. > and when we are leaving this procedure > storage pool Finalized. Exactly so. > Could be nice to have standard way to declate > access type with a local storage pool. I rather think that this is it!