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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1583af5ff29435e5 X-Google-Attributes: gid103376,public From: Florian Weimer Subject: Re: Dynamic allocation of tasks Date: 2000/03/24 Message-ID: <87u2hwuyok.fsf@deneb.cygnus.argh.org>#1/1 X-Deja-AN: 601810771 References: <87r9d3gvix.fsf@deneb.cygnus.argh.org> <8basg1$627$1@nnrp1.deja.com> <87ya7aewb8.fsf@deneb.cygnus.argh.org> <8bbr0n$8st$1@nnrp1.deja.com> Mail-Copies-To: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@cygnus.argh.org X-Trace: deneb.cygnus.argh.org 953914860 5948 192.168.1.2 (24 Mar 2000 16:21:00 GMT) Organization: Penguin on board User-Agent: Gnus/5.0804 (Gnus v5.8.4) Emacs/20.6 Mime-Version: 1.0 Reply-To: Florian Weimer NNTP-Posting-Date: 24 Mar 2000 16:21:00 GMT Newsgroups: comp.lang.ada Date: 2000-03-24T16:21:00+00:00 List-Id: Robert Dewar writes: > > I tried this (with GNAT 3.12p), and it didn't work (there was a > > resource leak, of both memory and kernel threads IIRC). > > As always you should post your code. Well, until recently, I was unable to reproduce the behavior in a sufficiently small test program. This test program indicates that the resource leak is a GNAT specific issue, and I'm going to start a thread on GNAT chat for that. > For example, we often see people doing an abort immediately followed > by an unchecked deallocation, and you can't rely on that to work! Is it save to wait (using delay) until T'Terminated becomes true, and deallocate after that?