[pypy-commit] pypy nogil-unsafe-2: (arigo, remi) acquire gil at start of pypy

Raemi pypy.commits at gmail.com
Wed Mar 1 12:42:53 EST 2017


Author: Remi Meier <remi.meier at gmail.com>
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


More information about the pypy-commit mailing list