Commits

Armin Rigo committed 9bfd0a6

Fix (I think): when calling C functions that call back some RPython
functions, never use _nowrapped=True. This breaks e.g. asmgcc's stack
tracing and triggers an assertion in debug builds. Instead, I think
that just saying "releasegil=False" is what we need here, according
to c23cd52909fb.

Comments (0)

Files changed (1)

pypy/module/cpyext/api.py

     else:
         prefix = 'cpyexttest'
     init_buffer = rffi.llexternal('_%s_init_bufferobject' % prefix, [], lltype.Void,
-                                  compilation_info=eci, _nowrapper=True)
+                                  compilation_info=eci, releasegil=False)
     init_pycobject = rffi.llexternal('_%s_init_pycobject' % prefix, [], lltype.Void,
-                                     compilation_info=eci, _nowrapper=True)
+                                     compilation_info=eci, releasegil=False)
     init_capsule = rffi.llexternal('_%s_init_capsule' % prefix, [], lltype.Void,
-                                   compilation_info=eci, _nowrapper=True)
+                                   compilation_info=eci, releasegil=False)
     INIT_FUNCTIONS.extend([
         lambda space: init_buffer(),
         lambda space: init_pycobject(),