[Python-checkins] cpython (merge 3.6 -> default): issue #28144: Decrease empty_keys_struct's dk_refcnt

serhiy.storchaka python-checkins at python.org
Mon Sep 26 16:02:11 EDT 2016


https://hg.python.org/cpython/rev/a579a0354d85
changeset:   104077:a579a0354d85
parent:      104075:42198bce4666
parent:      104076:5d80a8e16edd
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Mon Sep 26 23:01:42 2016 +0300
summary:
  issue #28144: Decrease empty_keys_struct's dk_refcnt
since there is no dummy_struct any more.
Patch by Xiang Zhang.

files:
  Objects/dictobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/dictobject.c b/Objects/dictobject.c
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -419,7 +419,7 @@
  * (which cannot fail and thus can do no allocation).
  */
 static PyDictKeysObject empty_keys_struct = {
-        2, /* dk_refcnt 1 for this struct, 1 for dummy_struct */
+        1, /* dk_refcnt */
         1, /* dk_size */
         lookdict_split, /* dk_lookup */
         0, /* dk_usable (immutable) */

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list