[New-bugs-announce] [issue2422] Automatically disable pymalloc when running under valgrind
James Henstridge
report at bugs.python.org
Wed Mar 19 12:11:09 CET 2008
New submission from James Henstridge <james at jamesh.id.au>:
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.
----------
components: Interpreter Core
files: disable-pymalloc-on-valgrind.patch
keywords: patch
messages: 64052
nosy: jamesh
severity: normal
status: open
title: Automatically disable pymalloc when running under valgrind
type: feature request
versions: Python 2.5
Added file: http://bugs.python.org/file9765/disable-pymalloc-on-valgrind.patch
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2422>
__________________________________
More information about the New-bugs-announce
mailing list