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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8fd45d32d7c94df3 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!feeder.news-service.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: User Defined Storage Pool : did you ever experiment with it ? Date: Mon, 24 Jan 2011 10:56:06 +0100 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: VW9mNFblv9T62deBHlS8Vw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/11.00 (Win32) Xref: g2news1.google.com comp.lang.ada:16658 Date: 2011-01-24T10:56:06+01:00 List-Id: Le Sat, 22 Jan 2011 16:13:40 +0100, Simon Wright a = = =C3=A9crit: > "Yannick Duch=C3=AAne (Hibou57)" writes: > >> I don't feel to remember I ever see a single Ada source with some use= >> of this. Is this just an not enough known feature, or does it mean >> there is not so much benefit to use it ? Or else, may be this could b= e >> beneficial but no one never go up to there (no evaluation of this >> option, or anything else) ? > > The Booch Components (https://sourceforge.net/projects/booch95/) have > always required users to provide storage pools *Required* That's interesting (currently downloading from the link you = gave). > However, while developing code on Windows for use in VxWorks, we found= > that the Windows allocator would zero-fill, while the VxWorks allocato= r > did no initialization (which is perfectly legal, of course). The resul= t > was that uninitialized record components would appear to work on Windo= ws > and crash mysteriously on the target. > > What we did to work round this (which was before GNAT offered pragma > Initialize_Scalars and -gnatV) was to provide a specialised storage po= ol > which fills requested memory with 16#deadbeef#; so any uninitialized > fields are (a) reasonably unlikely to correspond to reasonable values,= > (b) reasonably easy to spot in a store dump, (c) wrong on either OS. This looks like a bit what Ludovic exposed. This is some use of storage = = pool for security purpose. So these are at least two examples of storage= = pool used for something else than just for allocation strategy. -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9CI am fluent in ASCII=E2=80=9D [Warren 2010]