From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 3b48f99: Tune pseudovector allocation assuming Qnil == 0 Date: Fri, 16 Jan 2015 11:31:58 -0500 Message-ID: References: <20150116091337.18580.48119@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421425935 22474 80.91.229.3 (16 Jan 2015 16:32:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2015 16:32:15 +0000 (UTC) Cc: Dmitry Antipov To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 16 17:32:11 2015 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 1YC9og-0000mA-6J for ged-emacs-devel@m.gmane.org; Fri, 16 Jan 2015 17:32:10 +0100 Original-Received: from localhost ([::1]:56404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC9of-0006xy-Ng for ged-emacs-devel@m.gmane.org; Fri, 16 Jan 2015 11:32:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC9oc-0006xs-5V for emacs-devel@gnu.org; Fri, 16 Jan 2015 11:32:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YC9oW-0002Is-IB for emacs-devel@gnu.org; Fri, 16 Jan 2015 11:32:06 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:43487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC9oW-0002IW-Do for emacs-devel@gnu.org; Fri, 16 Jan 2015 11:32:00 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t0GGVwN2000602; Fri, 16 Jan 2015 11:31:58 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 8905125F2; Fri, 16 Jan 2015 11:31:58 -0500 (EST) In-Reply-To: (Dmitry Antipov's message of "Fri, 16 Jan 2015 09:13:38 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5188=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5188> : inlines <1790> : streams <1374400> : uri <1842625> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:181333 Archived-At: > + /* Only the first lisplen slots will be traced normally by the GC. > + But since Qnil == 0, we can memset Lisp_Object slots as well. */ > + memset (v->contents, 0, zerolen * word_size); Is Qnil==0 true for all builds? Maybe it's better to do if (Qnil == 0) else -- Stefan