[pypy-commit] pypy default: (arigo, fijal) add GIL handling around pypy_execute_source
fijal
noreply at buildbot.pypy.org
Wed Feb 26 09:35:17 CET 2014
Author: Maciej Fijalkowski <fijall at gmail.com>
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')
More information about the pypy-commit
mailing list