New submission from James Henstridge <[EMAIL PROTECTED]>:

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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2422>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to