summaryrefslogtreecommitdiff
path: root/perlapi.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-04 19:09:17 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-04 19:09:17 +0000
commit7cb608b5fc09aa914d5f91646e40ed772b6bac01 (patch)
treed87bee4dbd1d4300ece1a4a3ecc9d640f43495ed /perlapi.h
parentd79395463b4ec08db7bfe67c427a8c654b5904d6 (diff)
downloadperl-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/perlapi.h b/perlapi.h
index ad1a2efc08..fa28363d96 100644
--- a/perlapi.h
+++ b/perlapi.h
@@ -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