summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-23 08:38:54 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-23 08:38:54 (GMT)
commitca79ccd9e69641330d4002acac1bfeeb2dccda32 (patch)
tree5c7db82460bd48e35530aa8658ae6c9f0d19d87e /Include
parente8c6b2fd1bb75c6a3865745de30f26e235d3f12f (diff)
downloadcpython-ca79ccd9e69641330d4002acac1bfeeb2dccda32.zip
cpython-ca79ccd9e69641330d4002acac1bfeeb2dccda32.tar.gz
cpython-ca79ccd9e69641330d4002acac1bfeeb2dccda32.tar.bz2
Issue #26588:
* Optimize tracemalloc_add_trace(): modify hashtable entry data (trace) if the memory block is already tracked, rather than trying to remove the old trace and then add a new trace. * Add _Py_HASHTABLE_ENTRY_WRITE_DATA() macro
Diffstat (limited to 'Include')
-rw-r--r--Include/pymem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pymem.h b/Include/pymem.h
index 941e00f..431e5b6 100644
--- a/Include/pymem.h
+++ b/Include/pymem.h
@@ -34,7 +34,7 @@ typedef unsigned int _PyTraceMalloc_domain_t;
Return -2 if tracemalloc is disabled.
- If memory block was already tracked, begin by removing the old trace. */
+ If memory block is already tracked, update the existing trace. */
PyAPI_FUNC(int) _PyTraceMalloc_Track(
_PyTraceMalloc_domain_t domain,
Py_uintptr_t ptr,