From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alin Soare Newsgroups: gmane.emacs.devel Subject: Re: please help about garbage collector. Date: Fri, 3 Dec 2010 09:27:43 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0ce0d684630e0c04967c798f X-Trace: dough.gmane.org 1291361280 21556 80.91.229.12 (3 Dec 2010 07:28:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2010 07:28:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 03 08:27:55 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1POQ3c-0005wO-AS for ged-emacs-devel@m.gmane.org; Fri, 03 Dec 2010 08:27:53 +0100 Original-Received: from localhost ([127.0.0.1]:39071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POQ3b-0007eE-D6 for ged-emacs-devel@m.gmane.org; Fri, 03 Dec 2010 02:27:51 -0500 Original-Received: from [140.186.70.92] (port=56968 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POQ3V-0007e9-Kf for emacs-devel@gnu.org; Fri, 03 Dec 2010 02:27:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POQ3U-0008Ia-NL for emacs-devel@gnu.org; Fri, 03 Dec 2010 02:27:45 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:47611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POQ3U-0008IM-JB for emacs-devel@gnu.org; Fri, 03 Dec 2010 02:27:44 -0500 Original-Received: by wyj26 with SMTP id 26so1803025wyj.0 for ; Thu, 02 Dec 2010 23:27:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=zDhseOcnZVABXdmuHMvUaOTP+tmpntgzLOls6Ma4XMc=; b=p8OkR7etww9xgfoODKAQoWoTIXSPD26yanRydH6g6Cvo0quiS2o4IKdGfuqpwuanRx xFGHESAfr9XnAo5/KmpvseGZa5pT4tDbcnANRJCboCj/yxGpVQZCDIsU8HIXbM5YdVks qWAAo/TAfD6e159uoZGKzCaxxyvXADtN98seo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=teIzSvKSR65wQvxOlND0L+Pda7zPCnPJVJLdo+rB0LtUpeChYSRbVCecJ8f64faYv+ SMSGGVfYHhrx2mRVYFVbEPGHFz/EM/hkPIo+fMYyCgDNx1OCRdSnFFh5S/LIE5UnXxKN uXAg37zajN6jtEIEEbs/kZpBaM9CTwh16CzQM= Original-Received: by 10.216.59.199 with SMTP id s49mr174058wec.111.1291361263488; Thu, 02 Dec 2010 23:27:43 -0800 (PST) Original-Received: by 10.216.220.213 with HTTP; Thu, 2 Dec 2010 23:27:43 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133335 Archived-At: --000e0ce0d684630e0c04967c798f Content-Type: text/plain; charset=UTF-8 > How can you detect that at a given address on the stack there is a lisp > > object, and not something else ? > > By heuristic. Read about conservative garbage collection in your > favorite text book. > > Very interesting... I did not know about this kind of algorithm. Thanks a lot. --000e0ce0d684630e0c04967c798f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> How can you detect that at a given address on the stack there is a lis= p
> object, and not something else ?

By heuristic. =C2=A0Read about conservative garbage collection in you= r
favorite text book.


Very interesting... I did = not know about this kind of algorithm.

Thanks a lot.



=
--000e0ce0d684630e0c04967c798f--