From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#31750: simplify and tune Emacs stack-related allocation Date: Sat, 09 Jun 2018 23:30:30 -0400 Message-ID: <87po0zz5bd.fsf@gmail.com> References: <9aeda5fe-dc7c-30d5-39df-2942410a672b@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528604622 27718 195.159.176.226 (10 Jun 2018 04:23:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2018 04:23:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 31750@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 10 06:23:38 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fRrtB-00077K-Jr for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jun 2018 06:23:37 +0200 Original-Received: from localhost ([::1]:42646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRrvI-00018o-Oy for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jun 2018 00:25:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRr4L-0001Al-03 for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 23:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRr4H-0003hQ-SV for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 23:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33756) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRr4H-0003hM-O0 for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 23:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fRr4H-0002ZW-H4 for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2018 23:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jun 2018 03:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 31750-submit@debbugs.gnu.org id=B31750.15286014419859 (code B ref 31750); Sun, 10 Jun 2018 03:31:01 +0000 Original-Received: (at 31750) by debbugs.gnu.org; 10 Jun 2018 03:30:41 +0000 Original-Received: from localhost ([127.0.0.1]:41653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRr3w-0002Yx-W6 for submit@debbugs.gnu.org; Sat, 09 Jun 2018 23:30:41 -0400 Original-Received: from mail-io0-f176.google.com ([209.85.223.176]:38709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRr3v-0002Yk-FG for 31750@debbugs.gnu.org; Sat, 09 Jun 2018 23:30:39 -0400 Original-Received: by mail-io0-f176.google.com with SMTP id l19-v6so20188311ioj.5 for <31750@debbugs.gnu.org>; Sat, 09 Jun 2018 20:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=tQl8sFu4/S2rjGXAiPL9YkdgjOZHlbWoJmPK6Tpet8A=; b=Eypz2SMyZvXHeuTfYvWf699MRNs1CW+nvTkakAWM8FT2R4SULHtP07cqgeHqDidXC9 solPAyTKQoielHl4AgP2mKFJZIbYdAGgmgZr/wX0KUnjUgUUzAFsxbUHH1nWN0toWsZt 3Yl31HT57MiKXgnGJ/JrYyaurDNme3c4RiUHSBktG2jQHLc/GZILhD4ecInN97QS5OhA H3gaJEIv3Goemgk2dHdc5r381ugWlVsdWPe+DBZmIERvVzU0EeFCdPGi9TspDcvuBjrq dDoVB7TGlwEMu9SX3X9dRKkuybMkDQOacsrAbcVa7/tHOOwJLlZGS2QPWS6KksJXgLCC jUPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=tQl8sFu4/S2rjGXAiPL9YkdgjOZHlbWoJmPK6Tpet8A=; b=EprO84IDvXr/0ytNtf31iz6hEhvMB5l+XkM2jpVjY7U/XEQCzqRbsPLfcSPdtFeS/N d5PvKDR2FnCCzuj/WIloyzarOrIvVGjy8lfGtDmYMn4Nsq8eyfwcOM7Z+rEESNljcJiA 7re+wUr6hpmqiU/tqTe9i3OBTCo3EztokeaV7DEMnqWRc52gPxbQH8CblzaMKPxDix8C oEBvJQNEyQgBZLFMWXatdD6/IUG+/vSX6gLf64DvsRg+E2kHkxqBbtRF6HsgvQ4slEZF 2qtK7MNx0kgU9GJrVGOQ6ZmuZvxgQERlUGLXfEGwU8ClYHLAHa0lVm9O9Pl9wpWr5dQW m6bg== X-Gm-Message-State: APt69E1RzIritcIaPB0lyUgakA1AHHJlJhyJGsfIDU2XvNWv/2zn/5xL iPhj4ImzhJlRUvQ5DEBax54ulA== X-Google-Smtp-Source: ADUXVKJ3GDqrEEGJWdXct0OwLEgWwWVLWxDgwIEvQKqjeIxJmo93u0MIUTdmMcS4gYpk06HP0ToNbQ== X-Received: by 2002:a6b:f20e:: with SMTP id q14-v6mr9472461ioh.4.1528601433946; Sat, 09 Jun 2018 20:30:33 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id q11-v6sm3854846ita.15.2018.06.09.20.30.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Jun 2018 20:30:32 -0700 (PDT) In-Reply-To: <9aeda5fe-dc7c-30d5-39df-2942410a672b@cs.ucla.edu> (Paul Eggert's message of "Thu, 7 Jun 2018 19:27:52 -0700") 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-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147257 Archived-At: Paul Eggert writes: > Subject: [PATCH 01/10] New mint_ptr representation for C pointers > > * src/lisp.h (make_mint_ptr, mint_ptrp, xmint_pointer): New functions. > Use mint pointers instead of merely save pointers. I think it would be helpful to add a brief summary of the tradeoffs between save pointers and mint pointers to the commit message. > +/* A mint_ptr object OBJ represents a pointer P. OBJ is preferably a > + Lisp integer I such that XINTPTR (i) == P, as this is more efficient. ^ ^ I guess one of these is in the wrong case.