[pypy-commit] pypy cpyext-jit: don't look inside this for now, else it raises InvalidCast; probably it is possible to work-around it by casting both operands to void*, but didn't try yet

antocuni pypy.commits at gmail.com
Fri Sep 29 17:40:36 EDT 2017


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: cpyext-jit
Changeset: r92519:31cea4ce3c8c
Date: 2017-09-29 21:41 +0100
http://bitbucket.org/pypy/pypy/changeset/31cea4ce3c8c/

Log:	don't look inside this for now, else it raises InvalidCast; probably
	it is possible to work-around it by casting both operands to void*,
	but didn't try yet

diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
--- a/pypy/module/cpyext/typeobject.py
+++ b/pypy/module/cpyext/typeobject.py
@@ -394,6 +394,7 @@
     ptr = get_new_method_def(space)
     ptr.c_ml_meth = rffi.cast(PyCFunction, llslot(space, tp_new_wrapper))
 
+ at jit.dont_look_inside
 def is_tp_new_wrapper(space, ml):
     return ml.c_ml_meth == rffi.cast(PyCFunction, llslot(space, tp_new_wrapper))
 


More information about the pypy-commit mailing list