[pypy-commit] pypy default: Mark IdentityDict storage as being nonull.
alex_gaynor
noreply at buildbot.pypy.org
Mon Jul 25 03:10:25 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r45958:f1360c0d409b
Date: 2011-07-24 16:34 -0700
http://bitbucket.org/pypy/pypy/changeset/f1360c0d409b/
Log: Mark IdentityDict storage as being nonull.
diff --git a/pypy/objspace/std/identitydict.py b/pypy/objspace/std/identitydict.py
--- a/pypy/objspace/std/identitydict.py
+++ b/pypy/objspace/std/identitydict.py
@@ -2,6 +2,7 @@
## dict strategy (see dict_multiobject.py)
from pypy.rlib import rerased
+from pypy.rlib.debug import mark_dict_non_null
from pypy.objspace.std.dictmultiobject import (AbstractTypedStrategy,
DictStrategy,
IteratorImplementation,
@@ -65,7 +66,9 @@
return wrapped
def get_empty_storage(self):
- return self.erase({})
+ d = {}
+ mark_dict_non_null(d)
+ return self.erase(d)
def is_correct_type(self, w_obj):
w_type = self.space.type(w_obj)
More information about the pypy-commit
mailing list