Skip to content

Commit

Permalink
closes docs: remove references to Py_USING_MEMORY_DEBUGGER (GH-30284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Damazio authored Dec 29, 2021
1 parent bc87ac6 commit 8e11237
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Misc/README.valgrind
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ can be used to force the usage of the malloc() allocator of the C library.
If you don't want to read about the details of using Valgrind, there
are still two things you must do to suppress the warnings. First,
you must use a suppressions file. One is supplied in
Misc/valgrind-python.supp. Second, you must do one of the following:

* Uncomment Py_USING_MEMORY_DEBUGGER in Objects/obmalloc.c,
then rebuild Python
* Uncomment the lines in Misc/valgrind-python.supp that
suppress the warnings for PyObject_Free and PyObject_Realloc
Misc/valgrind-python.supp. Second, you must uncomment the lines in
Misc/valgrind-python.supp that suppress the warnings for PyObject_Free and
PyObject_Realloc.

If you want to use Valgrind more effectively and catch even more
memory leaks, you will need to configure python --without-pymalloc.
Expand Down

0 comments on commit 8e11237

Please sign in to comment.