diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-06-26 10:24:59 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-06-26 10:24:59 -0400 |
commit | 0b4e003766f15225dede9bdba4ead33e493856e2 (patch) | |
tree | 99de57fe8feeca540f398acb232b75e9c802418c /src/alloc.c | |
parent | 699fce296b13d7db386b1cb5cecf2710e5196691 (diff) | |
download | emacs-0b4e003766f15225dede9bdba4ead33e493856e2.tar.gz emacs-0b4e003766f15225dede9bdba4ead33e493856e2.tar.bz2 emacs-0b4e003766f15225dede9bdba4ead33e493856e2.zip |
Revert "* lisp/calc/calc-ext.el (math-scalarp): Fix typo"
This reverts commit 698ff554ac2699ec48fefc85a1307cbc4a183b0d.
Diffstat (limited to 'src/alloc.c')
-rw-r--r-- | src/alloc.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/alloc.c b/src/alloc.c index 86ecf5291c6..64aaa8acdfa 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -5989,28 +5989,6 @@ garbage_collect (void) garbage_collect_1 (&gcst); } -DEFUN ("garbage-collect-maybe", Fgarbage_collect_maybe, Sgarbage_collect_maybe, 1, 1, "", - doc: /* Call `garbage-collect' if enough allocation happened. -FACTOR determines what "enough" means here: -a FACTOR of N means to run the GC if more than 1/Nth of the allocations -needed to triger automatic allocation took place. */) - (Lisp_Object factor) -{ - CHECK_FIXNAT (factor); - EMACS_INT fact = XFIXNAT (factor); - byte_ct new_csgc = consing_since_gc * fact; - if (new_csgc / fact != consing_since_gc) - /* Overflow! */ - garbage_collect (); - else - { - consing_since_gc = new_csgc; - maybe_gc (); - consing_since_gc /= fact; - } - return Qnil; -} - DEFUN ("garbage-collect", Fgarbage_collect, Sgarbage_collect, 0, 0, "", doc: /* Reclaim storage for Lisp objects no longer needed. Garbage collection happens automatically if you cons more than @@ -7411,7 +7389,6 @@ N should be nonnegative. */); defsubr (&Smake_finalizer); defsubr (&Spurecopy); defsubr (&Sgarbage_collect); - defsubr (&Sgarbage_collect_maybe); defsubr (&Smemory_info); defsubr (&Smemory_use_counts); defsubr (&Ssuspicious_object); |