From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.devel Subject: Re: GC and stack marking Date: Wed, 21 May 2014 15:31:49 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c20d9440b69804f9ee0c34 X-Trace: ger.gmane.org 1400700727 16066 80.91.229.3 (21 May 2014 19:32:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2014 19:32:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 21 21:32:00 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 1WnCF4-0004kT-Pe for ged-emacs-devel@m.gmane.org; Wed, 21 May 2014 21:31:58 +0200 Original-Received: from localhost ([::1]:33348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnCF4-0002m0-Cf for ged-emacs-devel@m.gmane.org; Wed, 21 May 2014 15:31:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnCF1-0002lt-Fz for emacs-devel@gnu.org; Wed, 21 May 2014 15:31:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnCEx-0005bi-2i for emacs-devel@gnu.org; Wed, 21 May 2014 15:31:55 -0400 Original-Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:56279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnCEw-0005aA-U6 for emacs-devel@gnu.org; Wed, 21 May 2014 15:31:51 -0400 Original-Received: by mail-ob0-f170.google.com with SMTP id uy5so2672609obc.15 for ; Wed, 21 May 2014 12:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Kt1VOgYiXDjEnB9u0Z/Z5YsrGZm8/V21ad6IvOwkSI0=; b=UoHHCkMw7nh2Nqz7BtHe/fp1RTjMQIinlz3Haaq2FcPrY17/T5sRfG48RsQ/WCZgpU OpI64LleiVrGG/WqC40xSixIczKh0q6G1ig2+QHDoytHrXeo77QuGpdiXrkJfJAbcK4Q SVt/5/vFHPCA4jiCxGudad+D3dq0eSjaa9FfVW9n04BeUEmaZ9e9i04V8vQhPATf58jK H3In92AWPFcD81+nS6OrlQVyJLoGPBkYcrmKD4KtT1860Ui4Sy68qkwKL8/cCTc+Lv3W jqaMU2xH25ZThP1UX6vJOT+IR2N0OSrRolXMUZuskHesz4BEkB+1WtwyRCONI7h94h90 GqPg== X-Received: by 10.60.65.136 with SMTP id x8mr34719073oes.30.1400700709940; Wed, 21 May 2014 12:31:49 -0700 (PDT) Original-Received: by 10.76.6.44 with HTTP; Wed, 21 May 2014 12:31:49 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22a 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:172002 Archived-At: --001a11c20d9440b69804f9ee0c34 Content-Type: text/plain; charset=UTF-8 > It might simply be a slot that's unused by the current stack frame, > whose value comes from some stack frame that existed some time in > the past. So should the relevant C code try to initialize variables with non garbage? I took a look at Fgarbage_collect and found that the stack_top_variable variable for example is garbage valued. --001a11c20d9440b69804f9ee0c34 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> It might simply be a slot that's unused by the cu= rrent stack frame,
> whose value comes from some stack frame that exi= sted some time in
> the past.

So should the relevant C code tr= y to initialize variables with non
garbage? I took a look at Fgarbage_collect and found that the
stack_top_= variable variable for example is garbage valued.

--001a11c20d9440b69804f9ee0c34--