[pypy-commit] pypy nogil-unsafe-2: Don't decrement the ticker at all in the nogil-unsafe-2 branch

arigo pypy.commits at gmail.com
Wed Aug 16 04:44:50 EDT 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: nogil-unsafe-2
Changeset: r92159:b03810fcb5c1
Date: 2017-08-16 10:43 +0200
http://bitbucket.org/pypy/pypy/changeset/b03810fcb5c1/

Log:	Don't decrement the ticker at all in the nogil-unsafe-2 branch

diff --git a/pypy/interpreter/executioncontext.py b/pypy/interpreter/executioncontext.py
--- a/pypy/interpreter/executioncontext.py
+++ b/pypy/interpreter/executioncontext.py
@@ -436,6 +436,8 @@
         # hack to put the release-the-GIL one at the end of the list,
         # and the report-the-signals one at the start of the list.
         if use_bytecode_counter:
+            assert False, ("nogil-unsafe-2: shouldn't register a "
+                           "gil-releasing periodic action")
             self._periodic_actions.append(action)
             self.has_bytecode_counter = True
         else:
diff --git a/pypy/module/thread/gil.py b/pypy/module/thread/gil.py
--- a/pypy/module/thread/gil.py
+++ b/pypy/module/thread/gil.py
@@ -19,6 +19,7 @@
 
     def initialize(self, space):
         # add the GIL-releasing callback as an action on the space
+        return # XXX nogil-unsafe-2
         space.actionflag.register_periodic_action(GILReleaseAction(space),
                                                   use_bytecode_counter=True)
 


More information about the pypy-commit mailing list