all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* "garbage collection"
@ 2007-03-19 11:07 A Soare
  2007-03-19 21:57 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: A Soare @ 2007-03-19 11:07 UTC (permalink / raw)
  To: Emacs   Dev  [emacs-devel]

What is "garbage collection" from Feval is good for in this place?


DEFUN ("eval", Feval, Seval, 1, 1, 0,
       doc: /* Evaluate FORM and return its value.  */)
     (form)
     Lisp_Object form;
{
  Lisp_Object fun, val, original_fun, original_args;
  Lisp_Object funcar;
  struct backtrace backtrace;
  struct gcpro gcpro1, gcpro2, gcpro3;

  if (handling_signal)
    abort ();

  if (SYMBOLP (form))
    return Fsymbol_value (form);
  if (!CONSP (form))
    return form;

  QUIT;
  if ((consing_since_gc > gc_cons_threshold
       && consing_since_gc > gc_relative_threshold)
      ||
      (!NILP (Vmemory_full) && consing_since_gc > memory_full_cons_threshold))
    {
      GCPRO1 (form);
      Fgarbage_collect ();
      UNGCPRO;
    }

Merci d'avance.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "garbage collection"
  2007-03-19 11:07 "garbage collection" A Soare
@ 2007-03-19 21:57 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2007-03-19 21:57 UTC (permalink / raw)
  To: alinsoar; +Cc: emacs-devel

GC has to be done from time to time.  Feval is called pretty often,
and it is a safe place to check whether to do GC.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-19 21:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 11:07 "garbage collection" A Soare
2007-03-19 21:57 ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.