From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.bugs Subject: bug#24695: impossible to use weak hash tables inside gc hooks Date: Fri, 14 Oct 2016 20:54:56 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114a04b02b2e24053ed7c30a X-Trace: blaine.gmane.org 1476471939 7183 195.159.176.226 (14 Oct 2016 19:05:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2016 19:05:39 +0000 (UTC) To: 24695@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Oct 14 21:05:35 2016 Return-path: Envelope-to: guile-bugs@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 1bv7nR-000174-Da for guile-bugs@m.gmane.org; Fri, 14 Oct 2016 21:05:33 +0200 Original-Received: from localhost ([::1]:49030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv7nO-0003U7-Ft for guile-bugs@m.gmane.org; Fri, 14 Oct 2016 15:05:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv7eG-0004Aq-Et for bug-guile@gnu.org; Fri, 14 Oct 2016 14:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bv7eE-0002ZU-IO for bug-guile@gnu.org; Fri, 14 Oct 2016 14:56:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bv7eE-0002ZQ-FR for bug-guile@gnu.org; Fri, 14 Oct 2016 14:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bv7eE-0000XI-A0 for bug-guile@gnu.org; Fri, 14 Oct 2016 14:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Israelsson Tampe Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 14 Oct 2016 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24695 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14764713111994 (code B ref -1); Fri, 14 Oct 2016 18:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Oct 2016 18:55:11 +0000 Original-Received: from localhost ([127.0.0.1]:55562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bv7dP-0000W6-3m for submit@debbugs.gnu.org; Fri, 14 Oct 2016 14:55:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bv7dN-0000Vt-F7 for submit@debbugs.gnu.org; Fri, 14 Oct 2016 14:55:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bv7dH-0002H9-Hn for submit@debbugs.gnu.org; Fri, 14 Oct 2016 14:55:04 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bv7dH-0002Gp-E5 for submit@debbugs.gnu.org; Fri, 14 Oct 2016 14:55:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv7dF-0003Fm-1R for bug-guile@gnu.org; Fri, 14 Oct 2016 14:55:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bv7dD-0002Fw-1i for bug-guile@gnu.org; Fri, 14 Oct 2016 14:54:59 -0400 Original-Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:37078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bv7dC-0002FN-RA for bug-guile@gnu.org; Fri, 14 Oct 2016 14:54:58 -0400 Original-Received: by mail-wm0-x22e.google.com with SMTP id c78so14081237wme.0 for ; Fri, 14 Oct 2016 11:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=K49W/RIuY6uBhVepT5+TpI6ib/RzFz/DJcCGZXfRIKw=; b=jsakf73wck9kKdBBbxyRNZ+ulBIwrZeAqHM7rZX2bzaDCeNHk8jgA1FKJoVIrCnU53 wgiD75X1TVd2e/5qX2+Mck2kktBjgNRlH83GxM7PUxWhKrKYZ6wyLlq9fh5j/Q1aHihd vOvPdPFC+4G8otKgvl5Mbnv03jNgdoPyz2ZJBV2LdIWn/dE9c7dGtlTiweEYUDlifwSJ PwwgBmPt6z0ecEWaTaMIx6lXnWCQopOZjDceDXvIxO4dtE9PJVBpVxTVlbT+aZCVWl+h 6zT0WBVQasxEEuLCPhi6WAl4vvvkffIgtmLB+vLNdz/2zswJtT9IIErav7LY2hIc+qqh sZRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=K49W/RIuY6uBhVepT5+TpI6ib/RzFz/DJcCGZXfRIKw=; b=csuBEgo4ghuTTtvUCA89u0lTWtRXEGf1HxsBh7bTw2WbcTTBLaEbEhtwddyPLgvQYb oHy3t0HEz7NzaBVD0MF1tE1EmzeCcoiI9zmz9dONiYt9yF3e73gwyz8zb1c33fMCZgqV Qal2PW5EeMvF2ZltKXdRe0UWCK2/zd/TBCsTEacQwvMDuWEsvFZhD1mO2oKbMY1ABmbr 6irdD5Vff2V2ies0JDrR69Ub0mXbrKLum969KRMZpbAPusSgk6iBW+dq2RxSYxdHdM52 9HfJzvyN347SQdKtC7RwwP13+ixfdWJxfL2oZhygcoHwvxQRbQ/BH7TEVmiYKvk19mJC 6yyA== X-Gm-Message-State: AA6/9RnBArLDJhbRgHotMMcFldgZ2F06x2mhmdHCCrzh4WnE7rVXSuzW5A3zz+PmVie1hyspYipRwnDI6pwnsg== X-Received: by 10.28.59.9 with SMTP id i9mr6948101wma.102.1476471296829; Fri, 14 Oct 2016 11:54:56 -0700 (PDT) Original-Received: by 10.28.225.85 with HTTP; Fri, 14 Oct 2016 11:54:56 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org 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" Xref: news.gmane.org gmane.lisp.guile.bugs:8431 Archived-At: --001a114a04b02b2e24053ed7c30a Content-Type: text/plain; charset=UTF-8 For more advanced gc concepts it would be nice to keep a set a objects in a weak key hash table and at gc loop over the alive ones the various gc hooks that is available for the c coder. The problem is that current guile data structure would hang on folding because inside the guile weak folder gc is assumed to be prevented. Not sure what to do here. This might be a feature request or a bug report dependning on how you view it. Regards --001a114a04b02b2e24053ed7c30a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
For more advanced gc concepts it would be nice to keep a s= et a objects in a weak key hash table and at gc loop over the alive ones th= e various gc hooks that is available for the c coder.

Th= e problem is that current guile data structure would hang on folding becaus= e inside the guile weak folder gc is assumed to be prevented. Not sure what= to do here. This might be a feature request or a bug report dependning on = how you view it.

Regards
--001a114a04b02b2e24053ed7c30a--