]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18874: tracemalloc: explain the purpose of get_traces.tracebacks in a comment
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 25 Nov 2013 23:26:23 +0000 (00:26 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 25 Nov 2013 23:26:23 +0000 (00:26 +0100)
Modules/_tracemalloc.c

index 4cbbd9ed6b32cc40368c46b5877cfdc83b9fb6d7..7e9f69845d0621baffb8ea26985f771d79d77bde 100644 (file)
@@ -1041,6 +1041,8 @@ py_tracemalloc_get_traces(PyObject *self, PyObject *obj)
     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);