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 /intrpvar.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 'intrpvar.h')
-rw-r--r-- | intrpvar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intrpvar.h b/intrpvar.h index dc5868a1e8..79ad7de40d 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -525,6 +525,11 @@ PERLVARI(Imy_cxt_size, int, 0) /* size of PL_my_cxt_list */ PERLVARI(Imy_cxt_list, void **, NULL) /* per-module array of MY_CXT pointers */ #endif +#ifdef PERL_TRACK_MEMPOOL +/* For use with the memory debugging code in util.c */ +PERLVAR(Imemory_debug_header, struct perl_memory_debug_header) +#endif + /* New variables must be added to the very end, before this comment, * for binary compatibility (the offsets of the old members must not change). * (Don't forget to add your variable also to perl_clone()!) |