From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: GC and stack marking Date: Thu, 22 May 2014 18:49:13 +0300 Message-ID: <83ha4hn79i.fsf@gnu.org> References: <83sio2nb4s.fsf@gnu.org> <83r43mmt25.fsf@gnu.org> <537D6B2D.90208@dancol.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1400773783 28337 80.91.229.3 (22 May 2014 15:49:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 May 2014 15:49:43 +0000 (UTC) Cc: gundaetiapo@gmail.com, emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 22 17:49:36 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 1WnVFP-0001uz-Ps for ged-emacs-devel@m.gmane.org; Thu, 22 May 2014 17:49:35 +0200 Original-Received: from localhost ([::1]:38283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnVFP-00039N-H5 for ged-emacs-devel@m.gmane.org; Thu, 22 May 2014 11:49:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnVEx-0002d0-2b for emacs-devel@gnu.org; Thu, 22 May 2014 11:49:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnVEr-0006Kk-FG for emacs-devel@gnu.org; Thu, 22 May 2014 11:49:07 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnVEr-0006KS-7A for emacs-devel@gnu.org; Thu, 22 May 2014 11:49:01 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N5Z00400FOFPO00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Thu, 22 May 2014 18:48:59 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5Z004CQFXNFW70@a-mtaout22.012.net.il>; Thu, 22 May 2014 18:48:59 +0300 (IDT) In-reply-to: <537D6B2D.90208@dancol.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:172028 Archived-At: > Date: Wed, 21 May 2014 20:12:45 -0700 > From: Daniel Colascione > CC: emacs-devel@gnu.org > > What about cleaning the stack (memset from the top to the high water > mark) every once in a while? I believe this would be as tedious and expensive as clearing the stack on entry to a function. It also requires ugly OS-dependent code/assembly. Also, when would you exactly do that, except where we call GC? I think what I suggested a few minutes ago is better, and seems to solve the problem at hand.