[Python-checkins] cpython: Issue #18874: tracemalloc: explain the purpose of get_traces.tracebacks in a
victor.stinner
python-checkins at python.org
Tue Nov 26 00:41:56 CET 2013
http://hg.python.org/cpython/rev/2da28004dfac
changeset: 87567:2da28004dfac
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Nov 26 00:26:23 2013 +0100
summary:
Issue #18874: tracemalloc: explain the purpose of get_traces.tracebacks in a comment
files:
Modules/_tracemalloc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -1041,6 +1041,8 @@
if (!tracemalloc_config.tracing)
return get_traces.list;
+ /* the traceback hash table is used temporarily to intern traceback tuple
+ of (filename, lineno) tuples */
get_traces.tracebacks = hashtable_new(sizeof(PyObject *),
_Py_hashtable_hash_ptr,
_Py_hashtable_compare_direct);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list