summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-06-09 18:36:44 +0100
committerTony Cook <tony@develop-help.com>2022-06-21 15:25:01 +1000
commit467fdaa25ef3a55b35d6672dc1d63eb8f6f18938 (patch)
tree91afe2626b3e7457052473e0328cc8f27f097f22 /inline.h
parent34e6ab8ffa5a21acdac8ec7371b60f950cfe8ff6 (diff)
downloadperl-467fdaa25ef3a55b35d6672dc1d63eb8f6f18938.tar.gz
Add a PERL_MEM_LOG=c option
Prints more levels of C backtrace on SV allocation operations. Also prints the perl caller file + line number.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/inline.h b/inline.h
index 90dcf87e9d..3c9ef61fc5 100644
--- a/inline.h
+++ b/inline.h
@@ -3340,7 +3340,7 @@ Perl_mortal_getenv(const char * str)
}
}
- /* Then each of the three significant characters */
+ /* Then each of the four significant characters */
if (strchr(ret, 'm')) {
*mem_log_meat++ = 'm';
}
@@ -3350,6 +3350,9 @@ Perl_mortal_getenv(const char * str)
if (strchr(ret, 't')) {
*mem_log_meat++ = 't';
}
+ if (strchr(ret, 'c')) {
+ *mem_log_meat++ = 'c';
+ }
*mem_log_meat = '\0';
assert(mem_log_meat < PL_mem_log + sizeof(PL_mem_log));