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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c68551ab190372c8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny03.POSTED!0f19ed38!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: Subject: Re: Ada memory management? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: Date: Thu, 07 Oct 2004 18:35:30 GMT NNTP-Posting-Host: 141.154.230.214 X-Complaints-To: abuse@verizon.net X-Trace: trndny03 1097174130 141.154.230.214 (Thu, 07 Oct 2004 14:35:30 EDT) NNTP-Posting-Date: Thu, 07 Oct 2004 14:35:30 EDT Xref: g2news1.google.com comp.lang.ada:4888 Date: 2004-10-07T18:35:30+00:00 List-Id: "Larry Kilgallen" wrote in message news:AynU0Y9RbXiP@eisner.encompasserve.org... >> A whole pool is created on procedure entry? Are you sure? > > "A whole pool" _might_ be cheap (or not). > > I don't know the internals of the VMS Ada compiler, but the operating > system function LIB$CREATE_VM_ZONE is a relatively cheap way to make > something that could be used as a pool by an implementation. In the Win32 API, HeapCreate() can serve the same purpose, and HeapDestroy() can be used to clean up after exiting the procedure.