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!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:43:59 +0100 Organization: Ada @ Home Message-ID: References: <28c691ce-92e1-43b4-abba-96c63f10d235@r29g2000yqj.googlegroups.com> 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:16656 Date: 2011-01-24T10:43:59+01:00 List-Id: Le Mon, 24 Jan 2011 10:25:29 +0100, Ludovic Brenta = a =C3=A9crit: > We have a "No-Dealloc" storage pool that raises an exception if the > software attempts to deallocate from it. I like this one, though about the same (there are many case where = deallocation does not occur until end of program). > More importantly, this pool > works in two modes: initially it accepts allocation and writing of new= > objects in the pool (but, of course, no deallocation), then it > switches to read-only mode by calling mprotect(2) on all memory pages.= Clever, will keep this idea in mind. > The other custom storage pool we use is to detect memory leaks. We do > that by preprocessing our sources when building in a special leak- > detection mode. You did not said enough :) -- = 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]