This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jamesh
Recipients jamesh
Date 2008-03-19.11:11:07
SpamBayes Score 0.055503547
Marked as misclassified No
Message-id <1205925069.41.0.603933745456.issue2422@psf.upfronthosting.co.za>
In-reply-to
Content
When I want to use valgrind to check for leaks in a Python program (or
test suite), I generally want pymalloc disabled.  When not running
valgrind I generally want it enabled.

Attached is a patch that automatically bypasses the pymalloc code when
running under valgrind but leaves it enabled overwise.

It is controlled by a WITH_VALGRIND #define, but I haven't updated the
configure script to allow turning it on.  I also haven't done much in
the way of profiling to see what the overhead is when not running under
valgrind.
History
Date User Action Args
2008-03-19 11:11:09jameshsetspambayes_score: 0.0555035 -> 0.055503547
recipients: + jamesh
2008-03-19 11:11:09jameshsetspambayes_score: 0.0555035 -> 0.0555035
messageid: <1205925069.41.0.603933745456.issue2422@psf.upfronthosting.co.za>
2008-03-19 11:11:08jameshlinkissue2422 messages
2008-03-19 11:11:07jameshcreate