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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no 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-19 10:15:41 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!enews.sgi.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9oa69d$6ej$1@ns.omskelecom.ru> <9oahqo$3on$1@ns.omskelecom.ru> Subject: Re: dinamic object reclamation Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 19 Sep 2001 13:15:25 EDT Organization: http://www.newsranger.com Date: Wed, 19 Sep 2001 17:15:25 GMT Xref: archiver1.google.com comp.lang.ada:13182 Date: 2001-09-19T17:15:25+00:00 List-Id: In article <9oahqo$3on$1@ns.omskelecom.ru>, Anisimkov says... > >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. Interesting. I'm curious exactly what Gnat is doing there. I would have thought that it would just try to advance the stack pointer by that much, but clearly it isn't doing that (2GB? I think not!). Perhaps its doing something nice, like saying "that's rediculous! I'll just give him X". I'd still highly encourage you to find a reasonable max size, rather than using Integer'last. It could be that virtual memory is saving you here, but it could also be that you are depriving yourself of a large amount of memory that you could be using elsewhere. >It looks like a trick. Well, it is. But it is clearly one that was placed into the language on purpose. :-) --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com