From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Return value of finished threads Date: Sat, 21 Jul 2018 15:16:01 +0200 Message-ID: <874lgsivam.fsf@gmx.de> References: <87h8kuq7kf.fsf@gmx.de> <87h8kt3hcj.fsf@tromey.com> <87wotphqre.fsf@gmx.de> <87lga44u14.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532178895 18542 195.159.176.226 (21 Jul 2018 13:14:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2018 13:14:55 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 21 15:14:51 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgril-0004i1-Es for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2018 15:14:51 +0200 Original-Received: from localhost ([::1]:52419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgrkr-0006Mw-Ug for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2018 09:17:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgrkE-0006Mr-Q8 for emacs-devel@gnu.org; Sat, 21 Jul 2018 09:16:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgrk9-0002xd-Tl for emacs-devel@gnu.org; Sat, 21 Jul 2018 09:16:22 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:41571) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgrk9-0002xB-JP for emacs-devel@gnu.org; Sat, 21 Jul 2018 09:16:17 -0400 Original-Received: from detlef.gmx.de ([178.20.95.32]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MOwbP-1fcj8W16vv-006Kcc; Sat, 21 Jul 2018 15:16:03 +0200 In-Reply-To: <87lga44u14.fsf@tromey.com> (Tom Tromey's message of "Sat, 21 Jul 2018 07:07:03 -0600") X-Provags-ID: V03:K1:66SoN5ov7NipO5Vio6mazUl04fVkI1idS/kyknHKiNlgc30EOrs qqTaZRyahAozDlZJmnufZjIlHr/l7sLqFZA/hbnzra+w17PK0iY4do5OWPoh4ha2RvIKkCK 9zcNvaHV+jVT4kNi6ry+QEGSG2FNTqUJWiXIBAd1Q0+10jriG832pdPCdeH+Et0duW8mxFo WFOa1TKpxzuwD+OeDfzMA== X-UI-Out-Filterresults: notjunk:1;V01:K0:uZ2Fi0yKlPI=:kpaq+11uARQj5fWz8/aR9D PkVAaZEhfJYdK8fF/xl5YLdSjqHyjvtDNWRmJNHHQDJvlBytifwU51HpBrfLarWVCw7YiLT2q CI9CWb1CvazUb63h1feqo0pfLY99GgF4fSXSFZvTyrln6eRqHVEN78imjEOHopNaYYdrvF1py avQG6IIcG63nBX11BawPwn7zXZ48aLcQnVLGmJNT4WX/J425AXDbMIUzrowZJBFAat6IKRwTJ WOmBwYKByI14eMf+7la3A4m9llehPn/a32ppvp1S2zlh9lbNJ9l6oZMl0Rln/jP/b80rHUSQ3 xwetmbn5wZeSNGPHRwaCG0mXQi8AjyEMqO82RGLSETUqlVwxFldvf6zXWufumTCsVAKBL8h3m /yNIfa8dq74MKvP0l8xut1ZRzsCwrrdBIEkJFc9B5ypvacdBGVnJ+TmbRX8ZKB49R8xRljUKv dU1sHp+ozYAxEmmitcBTZOxZgiSpC0saX5i43N4tFTWiP/y3Ubcv7xaVOw8klTnzPjiC70LOF vU4uCxP6ylsT1oXdGNjvhOc41QYKu7yi4q7SM/gfkMxzH4nIriS8maSkl/KJdWE+lvP46lf+o l44gIExutBEd1eIn6Lo6ywJ3VBAD55yBJ6+6rh9lnmW1ip89MmqR3zVLNuh9zjsHsGGHiDc+r drRXG9ncC09m04/pWlnd9qWg4asPJoB9faA6QiyDA9OEklquk/DTGcGvdmlTnTEhfGppnIvqR ct3EWPJIylF9fmPwjfqGeVtGy4p1s5jw6H3J55IfrW4mUNPYas5q1tphmqw73kOafymcjUUZ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227616 Archived-At: Tom Tromey writes: > I think the way threads are marked has to be changed. > I believe that, currently, once a thread exits, its fields are no longer > marked. However, with this change we want to be sure that the result is > marked for a dead thread. Yes, likely until a thread-join has happened. And a second thread-join on the same thread shall always return ni. How long do we keep the results of dead threads, for which no thread-join happens? Do we need a Lisp cleanup function, which purges all dead threads results? Or does this the GC, when no Lisp object holds the dead thread any longer? (Btw, I believe it will be much better when you implement this. It is still hard for me to read and modify threads.c) > Tom Best regards, Michael.