From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Need for scm_remember_upto_here_* in guile-2.0 Date: Tue, 22 Sep 2015 16:54:12 +0200 Message-ID: <87d1xamrmz.fsf@gnu.org> References: <20150912132725.5a5e539c@bother.homenet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1442933680 19604 80.91.229.3 (22 Sep 2015 14:54:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Sep 2015 14:54:40 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 22 16:54:32 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZeOxj-0003GP-82 for guile-user@m.gmane.org; Tue, 22 Sep 2015 16:54:31 +0200 Original-Received: from localhost ([::1]:40487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeOxi-0003so-Jk for guile-user@m.gmane.org; Tue, 22 Sep 2015 10:54:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeOxa-0003hI-Ep for guile-user@gnu.org; Tue, 22 Sep 2015 10:54:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeOxX-0001yx-Nd for guile-user@gnu.org; Tue, 22 Sep 2015 10:54:22 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:59105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeOxX-0001wr-I4 for guile-user@gnu.org; Tue, 22 Sep 2015 10:54:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZeOxV-00033T-MT for guile-user@gnu.org; Tue, 22 Sep 2015 16:54:17 +0200 Original-Received: from pluto.bordeaux.inria.fr ([193.50.110.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Sep 2015 16:54:17 +0200 Original-Received: from ludo by pluto.bordeaux.inria.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Sep 2015 16:54:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 12 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pluto.bordeaux.inria.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 =?utf-8?Q?Vend=C3=A9miaire?= an 224 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:oyNLrNn6Vb82uOjcobc5TM2W85U= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12024 Archived-At: Hello, In practice scm_remember_upto_here_* is useless with libgc, since libgc also tracks pointers in registers. scm_gc_free should not be used, unless you really know what you are doing (it must be passed a valid pointer to the beginning of a GC-allocated area) and have a real need for it (like you know you’re freeing a big memory region and waiting for it to be collected would be impractical.) Ludo’.