From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: make-struct critical section throw Date: Tue, 13 Feb 2007 07:03:59 +1100 Message-ID: <87lkj3ta6o.fsf@zip.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171310669 26317 80.91.229.12 (12 Feb 2007 20:04:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2007 20:04:29 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Feb 12 21:04:13 2007 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HGhPG-0005GS-Us for guile-devel@m.gmane.org; Mon, 12 Feb 2007 21:04:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGhPG-00074P-Oz for guile-devel@m.gmane.org; Mon, 12 Feb 2007 15:04:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGhPE-00074I-BO for guile-devel@gnu.org; Mon, 12 Feb 2007 15:04:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGhPA-000746-1c for guile-devel@gnu.org; Mon, 12 Feb 2007 15:04:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGhP9-000743-VN for guile-devel@gnu.org; Mon, 12 Feb 2007 15:04:03 -0500 Original-Received: from mailout1-8.pacific.net.au ([61.8.2.215] helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HGhP9-0008Ma-19 for guile-devel@gnu.org; Mon, 12 Feb 2007 15:04:03 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 9820D5A0F71 for ; Tue, 13 Feb 2007 07:04:00 +1100 (EST) Original-Received: from localhost (ppp251C.dyn.pacific.net.au [61.8.37.28]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 348D38C05 for ; Tue, 13 Feb 2007 07:04:00 +1100 (EST) Original-Received: from gg by localhost with local (Exim 4.63) (envelope-from ) id 1HGhP5-0001hA-78 for guile-devel@gnu.org; Tue, 13 Feb 2007 07:03:59 +1100 Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:6517 Archived-At: Another error thrown from within an SCM_CRITICAL_SECTION_START, (define vv (make-vtable-vtable "" 0)) (define v (make-struct vv 0 (make-struct-layout "uw"))) (make-struct v 0 'x) => abort scm_make_struct has a critical section around the struct initialization, but when scm_struct_init tries to convert the symbol 'x (an initializer) with scm_to_ulong for the "u" type field, an error can be thrown. Anyone know why there's a critical section there? Was it to stop signal handlers in the past seeing half-initialized data? Can it be safely done outside a section now? I'm guessing yes. The gc won't mind seeing garbage in SCMs fields in the data array, will it? _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel