summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--malloc.c4
-rw-r--r--perl.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/malloc.c b/malloc.c
index 3aeb08846c..c84db66e31 100644
--- a/malloc.c
+++ b/malloc.c
@@ -2,6 +2,10 @@
*
*/
+#if defined(PERL_CORE) && !defined(DEBUGGING_MSTATS)
+# define DEBUGGING_MSTATS
+#endif
+
#ifndef lint
# if defined(DEBUGGING) && !defined(NO_RCHECK)
# define RCHECK
diff --git a/perl.c b/perl.c
index 04543294bf..c5979ce3b8 100644
--- a/perl.c
+++ b/perl.c
@@ -815,7 +815,7 @@ print \" \\@INC:\\n @INC\\n\";");
LEAVE;
FREETMPS;
-#ifdef DEBUGGING_MSTATS
+#ifdef MYMALLOC
if ((s=getenv("PERL_DEBUG_MSTATS")) && atoi(s) >= 2)
dump_mstats("after compilation:");
#endif
@@ -852,7 +852,7 @@ PerlInterpreter *sv_interp;
if (endav)
call_list(oldscope, endav);
FREETMPS;
-#ifdef DEBUGGING_MSTATS
+#ifdef MYMALLOC
if (getenv("PERL_DEBUG_MSTATS"))
dump_mstats("after execution: ");
#endif