Author: Armin Rigo <[email protected]>
Branch: effectinfo-cleanup
Changeset: r46388:e933dfc50146
Date: 2011-08-09 09:30 +0200
http://bitbucket.org/pypy/pypy/changeset/e933dfc50146/
Log: Comments.
diff --git a/pypy/rpython/lltypesystem/rffi.py
b/pypy/rpython/lltypesystem/rffi.py
--- a/pypy/rpython/lltypesystem/rffi.py
+++ b/pypy/rpython/lltypesystem/rffi.py
@@ -113,7 +113,9 @@
invoke_around_handlers = not sandboxsafe
if random_effects_on_gcobjs not in (False, True):
- random_effects_on_gcobjs = invoke_around_handlers or has_callback
+ random_effects_on_gcobjs = (
+ invoke_around_handlers or # because it can release the GIL
+ has_callback) # because the callback can do it
funcptr = lltype.functionptr(ext_type, name, external='C',
compilation_info=compilation_info,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit