Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r69454:7c361c775aa8
Date: 2014-02-26 10:33 +0200
http://bitbucket.org/pypy/pypy/changeset/7c361c775aa8/

Log:    (arigo, fijal) add GIL handling around pypy_execute_source

diff --git a/pypy/goal/targetpypystandalone.py 
b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -120,8 +120,10 @@
 
     @entrypoint('main', [rffi.CCHARP], c_name='pypy_execute_source')
     def pypy_execute_source(ll_source):
+        rffi.aroundstate.after()
         source = rffi.charp2str(ll_source)
         res = _pypy_execute_source(source)
+        rffi.aroundstate.before()
         return rffi.cast(rffi.INT, res)
 
     @entrypoint('main', [], c_name='pypy_init_threads')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to