From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:ac8:6145:: with SMTP id d5mr7403473qtm.197.1631665264798; Tue, 14 Sep 2021 17:21:04 -0700 (PDT) X-Received: by 2002:a25:c6c1:: with SMTP id k184mr2557807ybf.277.1631665264575; Tue, 14 Sep 2021 17:21:04 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 14 Sep 2021 17:21:04 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=98.118.241.166; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 98.118.241.166 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <72b0f8af-8b07-4989-be3f-82d53e729aben@googlegroups.com> Subject: Re: Custom Storage Pool questions From: Jere Injection-Date: Wed, 15 Sep 2021 00:21:04 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:62740 List-Id: On Tuesday, September 14, 2021 at 2:23:15 AM UTC-4, Dmitry A. Kazakov wrote: > On 2021-09-14 02:48, Jere wrote: > > > Yes, but if you look at that blog, they are allocating space for the /user/ data > > and for the Next/Prev for controlled types and First/Last for unconstrained > > arrays in addition to the size specified by allocate. > I do not understand your concern. The blog discusses how to add service > data to the objects allocated in the pool. > I tried to better articulate my concern in my response to egilhh if you want to take a quick look at that and see if it clarifies better. > I use such pools extensively in Simple Components. E.g. linked lists are > implemented this way. The list links are allocated in front of list > elements which can be of any type, unconstrained arrays included. > The blog I saw was old, so it is completely possible it no longer is true that GNAT does what the blog suggests. I'll take a look at your storage pools and see how they handle things like this.