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-Thread: 103376,2caa964596702891 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!newsserver.news.garr.it!newsserver.cilea.it!docenti.ing.unipi.it!o2943499 From: Colin Paul Gloster Newsgroups: comp.lang.ada Subject: Re: Ada.Containers and Storage_Pools Date: Wed, 9 Aug 2006 15:27:23 +0200 Organization: CILEA Message-ID: <20060809150954.I84175@docenti.ing.unipi.it> References: <1155125040.715167.132300@m73g2000cwd.googlegroups.com> Reply-To: Colin Paul Gloster NNTP-Posting-Host: docenti.ing.unipi.it Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: newsserver.cilea.it 1155130043 26841 131.114.28.20 (9 Aug 2006 13:27:23 GMT) X-Complaints-To: news@cilea.it NNTP-Posting-Date: 9 Aug 2006 13:27:23 GMT X-X-Sender: o2943499@docenti.ing.unipi.it In-Reply-To: <1155125040.715167.132300@m73g2000cwd.googlegroups.com> Xref: g2news2.google.com comp.lang.ada:6110 Date: 2006-08-09T13:27:23+00:00 List-Id: On Wed, 9 Aug 2006 Marcin Simonides posted: "[..] The problem I'm facing (and that is certain to show up in other parts of our project) is that I need to limit the size of cache in memory. To do this I would need to be able to have the containers allocate their nodes from a user-specified storage pool with some limiting mechanism (I already have such a pool and use it for objects that are allocated by my code). So I have a question: is there a possibility, either in GNAT 3.4.5 or in Ada 2005, to specify a custom storage pool for use by containers? If not, is there any other solution to limiting the size of memory used by containers? [..]" Perhaps I have failed to notice something obvious and important but could you use Storage_Size? From 13.11(15) in the Ada 2005 draft standard, http://www.adaic.org/standards/05rm/html/RM-13-11.html#I4699 : "Storage_Size [..] may be specified for a non-derived access-to-object type via an attribute_definition_clause; [..]". Regards, Colin Paul Gloster