diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2022-06-09 18:36:44 +0100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2022-06-21 15:25:01 +1000 |
commit | 467fdaa25ef3a55b35d6672dc1d63eb8f6f18938 (patch) | |
tree | 91afe2626b3e7457052473e0328cc8f27f097f22 /inline.h | |
parent | 34e6ab8ffa5a21acdac8ec7371b60f950cfe8ff6 (diff) | |
download | perl-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)); |