Author: Remi Meier <[email protected]>
Branch: nogil-unsafe-2
Changeset: r90445:0916afccd31b
Date: 2017-03-01 18:42 +0100
http://bitbucket.org/pypy/pypy/changeset/0916afccd31b/

Log:    (arigo, remi) acquire gil at start of pypy

diff --git a/rpython/memory/gctransform/shadowstack.py 
b/rpython/memory/gctransform/shadowstack.py
--- a/rpython/memory/gctransform/shadowstack.py
+++ b/rpython/memory/gctransform/shadowstack.py
@@ -231,7 +231,7 @@
 
         def thread_setup():
             allocate_shadow_stack()
-            tl_synclock.get_or_make_raw()
+            tl_synclock.setraw(1)  # acquire "gil"
 
         def thread_run():
             # If it's the first time we see this thread, allocate
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to