Author: fijal
Branch: nogil-unsafe-2
Changeset: r91856:cc04210a4bfd
Date: 2017-07-11 14:47 +0200
http://bitbucket.org/pypy/pypy/changeset/cc04210a4bfd/

Log:    (fijal, arigo) disable all the gil stuff

diff --git a/rpython/rlib/rgil.py b/rpython/rlib/rgil.py
--- a/rpython/rlib/rgil.py
+++ b/rpython/rlib/rgil.py
@@ -122,19 +122,21 @@
     _gil_allocate()
 
 def release():
+    return
     # this function must not raise, in such a way that the exception
     # transformer knows that it cannot raise!
     _gil_release()
-release._gctransformer_hint_cannot_collect_ = True
-release._dont_reach_me_in_del_ = True
+#release._gctransformer_hint_cannot_collect_ = True
+#release._dont_reach_me_in_del_ = True
 
 def acquire():
+    return
     from rpython.rlib import rthread
     _gil_acquire()
     rthread.gc_thread_run()
     _after_thread_switch()
-acquire._gctransformer_hint_cannot_collect_ = True
-acquire._dont_reach_me_in_del_ = True
+#acquire._gctransformer_hint_cannot_collect_ = True
+#acquire._dont_reach_me_in_del_ = True
 
 # The _gctransformer_hint_cannot_collect_ hack is needed for
 # translations in which the *_external_call() functions are not inlined.
@@ -151,10 +153,11 @@
     #     from rpython.rlib import rthread
     #     rthread.gc_thread_run()
     #     _after_thread_switch()
-    _gil_yield_thread()
-yield_thread._gctransformer_hint_close_stack_ = True
-yield_thread._dont_reach_me_in_del_ = True
-yield_thread._dont_inline_ = True
+    return
+    #_gil_yield_thread()
+#yield_thread._gctransformer_hint_close_stack_ = True
+#yield_thread._dont_reach_me_in_del_ = True
+#yield_thread._dont_inline_ = True
 
 # yield_thread() needs a different hint: _gctransformer_hint_close_stack_.
 # The *_external_call() functions are themselves called only from the rffi
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to