aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorAndrea Corallo2020-11-14 22:07:54 +0100
committerAndrea Corallo2020-11-14 22:07:54 +0100
commit2a8bf2222dd5d786375c131aa13dd1ea6f0cf104 (patch)
tree4f69d049302a8144783ff697f6a73d7e3e585539 /src/alloc.c
parentf702426780475309bdd33ef896d28dd33484246b (diff)
parentad29bc74ca9d4e1768698d4002b49c234624e359 (diff)
downloademacs-2a8bf2222dd5d786375c131aa13dd1ea6f0cf104.tar.gz
emacs-2a8bf2222dd5d786375c131aa13dd1ea6f0cf104.zip
Merge remote-tracking branch 'savannah/master' into dev
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index fbfa814bcd8..ff6681cc760 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -7225,6 +7225,20 @@ Frames, windows, buffers, and subprocesses count as vectors
7225 make_int (strings_consed)); 7225 make_int (strings_consed));
7226} 7226}
7227 7227
7228#ifdef GNU_LINUX
7229DEFUN ("malloc-info", Fmalloc_info, Smalloc_info, 0, 0, "",
7230 doc: /* Report malloc information to stderr.
7231This function outputs to stderr an XML-formatted
7232description of the current state of the memory-allocation
7233arenas. */)
7234 (void)
7235{
7236 if (malloc_info (0, stderr))
7237 error ("malloc_info failed: %s", emacs_strerror (errno));
7238 return Qnil;
7239}
7240#endif
7241
7228static bool 7242static bool
7229symbol_uses_obj (Lisp_Object symbol, Lisp_Object obj) 7243symbol_uses_obj (Lisp_Object symbol, Lisp_Object obj)
7230{ 7244{
@@ -7569,6 +7583,9 @@ N should be nonnegative. */);
7569 defsubr (&Sgarbage_collect); 7583 defsubr (&Sgarbage_collect);
7570 defsubr (&Smemory_info); 7584 defsubr (&Smemory_info);
7571 defsubr (&Smemory_use_counts); 7585 defsubr (&Smemory_use_counts);
7586#ifdef GNU_LINUX
7587 defsubr (&Smalloc_info);
7588#endif
7572 defsubr (&Ssuspicious_object); 7589 defsubr (&Ssuspicious_object);
7573 7590
7574 Lisp_Object watcher; 7591 Lisp_Object watcher;