diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-04 19:09:17 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-04 19:09:17 +0000 |
commit | 7cb608b5fc09aa914d5f91646e40ed772b6bac01 (patch) | |
tree | d87bee4dbd1d4300ece1a4a3ecc9d640f43495ed /perlapi.h | |
parent | d79395463b4ec08db7bfe67c427a8c654b5904d6 (diff) | |
download | perl-7cb608b5fc09aa914d5f91646e40ed772b6bac01.tar.gz |
Enhance PERL_TRACK_MEMPOOL so that it also emulates the PerlHost
behaviour of freeing up all memory at thread exit. With this and
tools such as valgrind you will now get warnings as soon as you
read from the deallocated memory, rather than just a warning much
later about freeing to the wrong pool.
p4raw-id: //depot/perl@27084
Diffstat (limited to 'perlapi.h')
-rw-r--r-- | perlapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -406,6 +406,8 @@ END_EXTERN_C #define PL_maxo (*Perl_Imaxo_ptr(aTHX)) #undef PL_maxsysfd #define PL_maxsysfd (*Perl_Imaxsysfd_ptr(aTHX)) +#undef PL_memory_debug_header +#define PL_memory_debug_header (*Perl_Imemory_debug_header_ptr(aTHX)) #undef PL_mess_sv #define PL_mess_sv (*Perl_Imess_sv_ptr(aTHX)) #undef PL_min_intro_pending |