[pypy-commit] pypy look-into-thread: don't look into those llops

fijal noreply at buildbot.pypy.org
Mon Jan 9 23:46:59 CET 2012

Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: look-into-thread
Changeset: r51188:d2fe92d73a1f
Date: 2012-01-10 00:46 +0200

Log:	don't look into those llops

diff --git a/pypy/module/thread/ll_thread.py b/pypy/module/thread/ll_thread.py
--- a/pypy/module/thread/ll_thread.py
+++ b/pypy/module/thread/ll_thread.py
@@ -192,6 +192,7 @@
 # Thread integration.
 # These are six completely ad-hoc operations at the moment.
+ at jit.dont_look_inside
 def gc_thread_prepare():
     """To call just before thread.start_new_thread().  This
     allocates a new shadow stack to be used by the future
@@ -202,6 +203,7 @@
     if we_are_translated():
+ at jit.dont_look_inside
 def gc_thread_run():
     """To call whenever the current thread (re-)acquired the GIL.
@@ -209,12 +211,14 @@
 gc_thread_run._always_inline_ = True
+ at jit.dont_look_inside
 def gc_thread_start():
     """To call at the beginning of a new thread.
     if we_are_translated():
+ at jit.dont_look_inside
 def gc_thread_die():
     """To call just before the final GIL release done by a dying
     thread.  After a thread_die(), no more gc operation should
@@ -224,6 +228,7 @@
 gc_thread_die._always_inline_ = True
+ at jit.dont_look_inside
 def gc_thread_before_fork():
     """To call just before fork().  Prepares for forking, after
     which only the current thread will be alive.
@@ -233,6 +238,7 @@
         return llmemory.NULL
+ at jit.dont_look_inside
 def gc_thread_after_fork(result_of_fork, opaqueaddr):
     """To call just after fork().

More information about the pypy-commit mailing list