[pypy-commit] pypy gc-hooks: blindly try to use the new gchooks in the pypy target
antocuni
pypy.commits at gmail.com
Sat Mar 31 08:48:13 EDT 2018
Author: Antonio Cuni <anto.cuni at 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())
More information about the pypy-commit
mailing list