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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ea9fbf0f08e5af8a,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!14g2000prv.googlegroups.com!not-for-mail From: Marc C Newsgroups: comp.lang.ada Subject: Delayed deallocation of non-terminated task in Gnat? Date: Tue, 30 Aug 2011 06:22:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <31ba531d-fa8e-40f3-97bc-c9112b329fe2@14g2000prv.googlegroups.com> NNTP-Posting-Host: 157.127.155.214 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1314714335 28353 127.0.0.1 (30 Aug 2011 14:25:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 30 Aug 2011 14:25:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 14g2000prv.googlegroups.com; posting-host=157.127.155.214; posting-account=mjE6MAoAAADjsB3NIuKgfHO4u-Elh3cb User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20746 Date: 2011-08-30T06:22:43-07:00 List-Id: Saw this pop up in AdaCore's Developer Center notices: >[GNAT] Automatic deallocation of task upon termination > >Monday August 29, 2011 > >If Unchecked_Deallocation is called on a non-terminated task (which was previously a no-op), >the task is now marked to be freed automatically when it terminates. [http://www.adacore.com/2011/08/29/NF-65-H911-007-gnat/] This *looks* to me like one could dynamically allocate a task instance and then immediately free it with an instantiation of Unchecked_Deallocation, yet the task would continue to function normally until it terminates. This seems rather a stretch to me, is there more to this than this brief summary lets on? Marc A. Criley