diff options
author | Ilya Zakharevich <ilya@math.ohio-state.edu> | 1997-06-16 11:17:08 +1200 |
---|---|---|
committer | Tim Bunce <Tim.Bunce@ig.co.uk> | 1997-08-07 00:00:00 +1200 |
commit | 3562ef9bd2cdbf90129e36ac9d1818321a4fe8c0 (patch) | |
tree | 7e8d236194705ad6575f2b5eb40069e5e776612b | |
parent | 6d07e5e939afa671a7159961283be7a3f91c8c79 (diff) | |
download | perl-3562ef9bd2cdbf90129e36ac9d1818321a4fe8c0.tar.gz |
Enable PERL_DEBUG_MSTATS without -DDEBUGGING_MSTATS
Subject: [PATCH]: reduced malloc patch
Since this problems arise again and again on the list, here is the
reduced malloc patch. It corrects the following problems:
a) several off-by-one in av_make();
b) Growing TMP on conversion number=>string;
c) Uncompatibility of -DDEBUGGING_MSTATS and system malloc;
(The first two problems are fixed by malloc_jumbo_2 as well, but the
2 chunks for "c" - in perl.c - were forgotten in that patch).
Enjoy,
p5p-msgid: 199707150829.EAA01291@monk.mps.ohio-state.edu
-rw-r--r-- | malloc.c | 4 | ||||
-rw-r--r-- | perl.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -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 @@ -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 |