Author: Armin Rigo <ar...@tunes.org> Branch: stm-gc Changeset: r54431:3ab81c92db19 Date: 2012-04-16 17:52 +0200 http://bitbucket.org/pypy/pypy/changeset/3ab81c92db19/
Log: Disable a couple of extra features when translating with --no-translation-rweakref. diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py --- a/pypy/config/pypyoption.py +++ b/pypy/config/pypyoption.py @@ -320,10 +320,14 @@ default=False), BoolOption("getattributeshortcut", "track types that override __getattribute__", - default=False), + default=False, + # weakrefs needed, because of get_subclasses() + requires=[("translation.rweakref", True)]), BoolOption("newshortcut", "cache and shortcut calling __new__ from builtin types", - default=False), + default=False, + # weakrefs needed, because of get_subclasses() + requires=[("translation.rweakref", True)]), BoolOption("logspaceoptypes", "a instrumentation option: before exit, print the types seen by " @@ -337,7 +341,9 @@ 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=False), + default=False, + # weakrefs needed, because of get_subclasses() + requires=[("translation.rweakref", True)]), ]), ]) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit