summaryrefslogtreecommitdiff
path: root/src/unexw32.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-05-29 18:21:08 +0300
committerEli Zaretskii <eliz@gnu.org>2014-05-29 18:21:08 +0300
commitd2ff520ae44eaa9c21bb5c5069ff393b0b99eb60 (patch)
tree6e8104c5dfe066d08d64388d88627b90b5fd7aca /src/unexw32.c
parent035159ed54cf2e1abc0439fbb6e628c9223f8e5d (diff)
downloademacs-d2ff520ae44eaa9c21bb5c5069ff393b0b99eb60.tar.gz
Add diagnostics for using private heap on MS-Windows during dumping.
src/w32heap.c (report_temacs_memory_usage): New function. src/unexw32.c (unexec) [ENABLE_CHECKING]: Call report_temacs_memory_usage. src/w32heap.h (report_temacs_memory_usage): Add prototype.
Diffstat (limited to 'src/unexw32.c')
-rw-r--r--src/unexw32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unexw32.c b/src/unexw32.c
index 60b926b2499..7cbd95a46fe 100644
--- a/src/unexw32.c
+++ b/src/unexw32.c
@@ -728,6 +728,10 @@ unexec (const char *new_name, const char *old_name)
abort ();
strcpy (p, q);
+#ifdef ENABLE_CHECKING
+ report_temacs_memory_usage ();
+#endif
+
/* Make sure that the output filename has the ".exe" extension...patch
it up if not. */
p = out_filename + strlen (out_filename) - 4;