Author: Armin Rigo <[email protected]>
Branch:
Changeset: r86601:020068a372fd
Date: 2016-08-27 16:33 +0200
http://bitbucket.org/pypy/pypy/changeset/020068a372fd/
Log: Fix for fda5486b3186 (sorry!): there was at least one untested place
where a llexternal() function was called with more arguments than
declared (here a space), which was previously ignored
diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -977,9 +977,11 @@
py_type_ready(space, get_capsule_type())
INIT_FUNCTIONS.append(init_types)
from pypy.module.posix.interp_posix import add_fork_hook
- reinit_tls = rffi.llexternal('%sThread_ReInitTLS' % prefix, [],
lltype.Void,
- compilation_info=eci)
- add_fork_hook('child', reinit_tls)
+ _reinit_tls = rffi.llexternal('%sThread_ReInitTLS' % prefix, [],
+ lltype.Void, compilation_info=eci)
+ def reinit_tls(space):
+ _reinit_tls()
+ add_fork_hook('child', _reinit_tls)
def init_function(func):
INIT_FUNCTIONS.append(func)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit