Re: [pypy-dev] setting attribute of JitHookInterface instance

2016-03-15 Thread Magnus Morton
Hi Armin, You can recreate it in PyPy by putting the following two lines pretty much anywhere in interpreter level code other than the setup_after_space_initialization methods from pypy.module.pypyjit.hooks import pypy_hooks pypy_hooks.foo = “foo” What I can’t understand is what is special abo

Re: [pypy-dev] setting attribute of JitHookInterface instance

2016-03-15 Thread Armin Rigo
Hi Magnus, On 15 March 2016 at 15:45, Magnus Morton wrote: > Yes, it has all the methods defined. If I take out the assignment, but still > define a JitPolicy with the hooks, it translates fine. Can't help, I would need to reproduce the problem first. Please give step-by-step instructions abou

Re: [pypy-dev] setting attribute of JitHookInterface instance

2016-03-15 Thread Magnus Morton
Hi Amin, Yes, it has all the methods defined. If I take out the assignment, but still define a JitPolicy with the hooks, it translates fine. Cheers, Magnus > On 15 Mar 2016, at 10:48, Armin Rigo wrote: > > Hi Magnus, > > On 15 March 2016 at 03:32, Magnus Morton wrote: >> [translation:ERROR]

Re: [pypy-dev] setting attribute of JitHookInterface instance

2016-03-15 Thread Armin Rigo
Hi Magnus, On 15 March 2016 at 03:32, Magnus Morton wrote: > [translation:ERROR] MissingRTypeAttribute: on_abort > [translation:ERROR] .. > (rpython.jit.metainterp.pyjitpl:2224)MetaInterp.aborted_tracing > [translation:ERROR] .. block@59 with 2 exits(v1678) > [translation:ERROR] .. v1680 = getat