Author: Antonio Cuni <anto.c...@gmail.com> Branch: gc-hooks Changeset: r94198:5bf5fddf26f6 Date: 2018-03-31 14:47 +0200 http://bitbucket.org/pypy/pypy/changeset/5bf5fddf26f6/
Log: blindly try to use the new gchooks in the pypy target diff --git a/pypy/goal/targetpypystandalone.py b/pypy/goal/targetpypystandalone.py --- a/pypy/goal/targetpypystandalone.py +++ b/pypy/goal/targetpypystandalone.py @@ -364,6 +364,10 @@ from pypy.module.pypyjit.hooks import pypy_hooks return PyPyJitPolicy(pypy_hooks) + def get_gchooks(self): + from pypy.module.gc.hook import gchooks + return gchooks + def get_entry_point(self, config): space = make_objspace(config) @@ -381,7 +385,7 @@ 'jitpolicy', 'get_entry_point', 'get_additional_config_options']: ns[name] = getattr(self, name) - + ns['gchooks'] = self.get_gchooks() PyPyTarget().interface(globals()) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit