diff options
| author | Andrea Corallo | 2020-11-14 22:07:54 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-11-14 22:07:54 +0100 |
| commit | 2a8bf2222dd5d786375c131aa13dd1ea6f0cf104 (patch) | |
| tree | 4f69d049302a8144783ff697f6a73d7e3e585539 /src/alloc.c | |
| parent | f702426780475309bdd33ef896d28dd33484246b (diff) | |
| parent | ad29bc74ca9d4e1768698d4002b49c234624e359 (diff) | |
| download | emacs-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.c | 17 |
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 | ||
| 7229 | DEFUN ("malloc-info", Fmalloc_info, Smalloc_info, 0, 0, "", | ||
| 7230 | doc: /* Report malloc information to stderr. | ||
| 7231 | This function outputs to stderr an XML-formatted | ||
| 7232 | description of the current state of the memory-allocation | ||
| 7233 | arenas. */) | ||
| 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 | |||
| 7228 | static bool | 7242 | static bool |
| 7229 | symbol_uses_obj (Lisp_Object symbol, Lisp_Object obj) | 7243 | symbol_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; |