From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: Benchmarking temporary Lisp objects [Was: Re: [RFC] temporary Lisp_Strings] Date: Thu, 04 Sep 2014 09:51:48 +0400 Message-ID: <5407FDF4.7020504@yandex.ru> References: <5405BE5D.1090003@yandex.ru> <5405DE8B.4050201@yandex.ru> <5406EC21.4060200@yandex.ru> <5407281C.3090302@cs.ucla.edu> <54073621.2040403@yandex.ru> <540744F5.2010804@cs.ucla.edu> <5407F1B7.6090704@yandex.ru> <5407F4E6.2040809@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1409828835 25614 80.91.229.3 (4 Sep 2014 11:07:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2014 11:07:15 +0000 (UTC) Cc: Emacs development discussions To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 04 07:52:20 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XPPxz-0000cY-9S for ged-emacs-devel@m.gmane.org; Thu, 04 Sep 2014 07:52:19 +0200 Original-Received: from localhost ([::1]:48872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPPxy-0001Co-Mo for ged-emacs-devel@m.gmane.org; Thu, 04 Sep 2014 01:52:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPPxg-0001Ch-PP for emacs-devel@gnu.org; Thu, 04 Sep 2014 01:52:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPPxZ-0005jM-FT for emacs-devel@gnu.org; Thu, 04 Sep 2014 01:52:00 -0400 Original-Received: from forward10l.mail.yandex.net ([2a02:6b8:0:1819::a]:36424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPPxZ-0005iu-22 for emacs-devel@gnu.org; Thu, 04 Sep 2014 01:51:53 -0400 Original-Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward10l.mail.yandex.net (Yandex) with ESMTP id 8E1DFBA0CE7; Thu, 4 Sep 2014 09:51:50 +0400 (MSK) Original-Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 104EE17044F1; Thu, 4 Sep 2014 09:51:49 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id RwW1siHmzr-pn44oBmA; Thu, 4 Sep 2014 09:51:49 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 342282a4-bb8b-4774-83e6-3a9d000f3df7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1409809909; bh=IDPps1TCT8IDKZzQJrnToA5/TzpplQzMgrCE/CCQPZs=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=b3dBtlNDlHNbwvjVKkwni+VQtoJRSUWsP+c1hr2Cyd7bOmgqIrVfsSWNV6smeeh29 8/LuglP5Y4WKzaXcS6FmDfRs9oEXWbB9xelWUdFrxE9D5Bgd8Ci23FpN14sXCSc3L0 GhlBqDzlnvK+2WHA8pDtKHjXFsSzKroD5SGVhe9o= Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <5407F4E6.2040809@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a02:6b8:0:1819::a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174002 On 09/04/2014 09:13 AM, Paul Eggert wrote: > How about something like this? No, I'm talking about the case when we can't us __attribute__ ((aligned (X))). Because if we can, there is no problem at all: #define _GC_ALIGNED_ __attribute__ ((aligned (GCALIGNMENT))) struct _GC_ALIGNED_ Lisp_Cons { ...; }; #define scoped_cons(car, cdr) \ make_lisp_ptr (&((struct Lisp_Cons) { car, { cdr } }), Lisp_Cons) Dmitry