From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs,gmane.comp.programming.garbage-collection.boehmgc Subject: Re: [Gc] Calling =?utf-8?Q?=E2=80=98GC=5Fpthread=5Fcreate?= =?utf-8?Q?=E2=80=99?= from a pthread key destructor Date: Sun, 24 Apr 2011 15:04:55 +0200 Message-ID: <87wrijvlzc.fsf@gnu.org> References: <87tydt3syv.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303650304 22725 80.91.229.12 (24 Apr 2011 13:05:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Apr 2011 13:05:04 +0000 (UTC) Cc: bug-guile@gnu.org, gc@linux.hpl.hp.com To: Ivan Maidanski Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Apr 24 15:05:00 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QDyzj-00037G-TO for guile-bugs@m.gmane.org; Sun, 24 Apr 2011 15:05:00 +0200 Original-Received: from localhost ([::1]:50533 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDyzj-0002BO-Cx for guile-bugs@m.gmane.org; Sun, 24 Apr 2011 09:04:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDyzh-0002BI-NG for bug-guile@gnu.org; Sun, 24 Apr 2011 09:04:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDyzg-0002p9-TD for bug-guile@gnu.org; Sun, 24 Apr 2011 09:04:57 -0400 Original-Received: from solo.fdn.fr ([80.67.169.19]:59462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDyzg-0002p5-OY for bug-guile@gnu.org; Sun, 24 Apr 2011 09:04:56 -0400 Original-Received: from nixey (reverse-83.fdn.fr [80.67.176.83]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: lcourtes) by smtp.fdn.fr (Postfix) with ESMTPSA id DE6EF4444E; Sun, 24 Apr 2011 15:04:55 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 =?iso-8859-1?Q?Flor=E9al?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Ivan Maidanski's message of "Sun, 24 Apr 2011 10:48:10 +0400") User-Agent: Gnus/5.110015 (No Gnus v0.15) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 80.67.169.19 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5514 gmane.comp.programming.garbage-collection.boehmgc:4505 Archived-At: Hi, Ivan Maidanski writes: >> pthread_setspecific (key, GC_STRDUP ("hello, world")); > > Just one note. Are you aware that this code is equivalent (since TLS is n= ot traced by GC) to: > > (void)GC_STRDUP ("hello, world"); > pthread_setspecific (key, ); Yes. The only point of this statement is to stress the GC and associate an initial value with the key (otherwise its destructor is never called.) Thanks, Ludo=E2=80=99.