1. Pypy
  2. Untitled project
  3. pypy


Maciej Fijalkowski  committed d2fe92d

don't look into those llops

  • Participants
  • Parent commits 283df4b
  • Branches look-into-thread

Comments (0)

Files changed (1)

File pypy/module/thread/ll_thread.py

View file
 # Thread integration.
 # These are six completely ad-hoc operations at the moment.
 def gc_thread_prepare():
     """To call just before thread.start_new_thread().  This
     allocates a new shadow stack to be used by the future
     if we_are_translated():
 def gc_thread_run():
     """To call whenever the current thread (re-)acquired the GIL.
 gc_thread_run._always_inline_ = True
 def gc_thread_start():
     """To call at the beginning of a new thread.
     if we_are_translated():
 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
 gc_thread_die._always_inline_ = True
 def gc_thread_before_fork():
     """To call just before fork().  Prepares for forking, after
     which only the current thread will be alive.
         return llmemory.NULL
 def gc_thread_after_fork(result_of_fork, opaqueaddr):
     """To call just after fork().