[pypy-commit] pypy stm: Use default=False, and enable it only in -O2/O3/Ojit, like the

arigo noreply at buildbot.pypy.org
Sat Nov 5 19:38:10 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: stm
Changeset: r48805:5eb3fc96c892
Date: 2011-11-05 19:36 +0100
http://bitbucket.org/pypy/pypy/changeset/5eb3fc96c892/

Log:	Use default=False, and enable it only in -O2/O3/Ojit, like the other
	optimizations. Fixes an issue if weakrefs are disabled.

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -333,7 +333,7 @@
                    requires=[("objspace.std.builtinshortcut", True)]),
         BoolOption("withidentitydict",
                    "track types that override __hash__, __eq__ or __cmp__ and use a special dict strategy for those which do not",
-                   default=True),
+                   default=False),
      ]),
 ])
 
@@ -362,6 +362,7 @@
         config.objspace.std.suggest(optimized_list_getitem=True)
         config.objspace.std.suggest(getattributeshortcut=True)
         config.objspace.std.suggest(newshortcut=True)
+        config.objspace.std.suggest(withidentitydict=True)
         #if not IS_64_BITS:
         #    config.objspace.std.suggest(withsmalllong=True)
 


More information about the pypy-commit mailing list