Commits

Armin Rigo  committed a7cf044

The GIL-releasing functions must not be reached by an
RPython-level __del__.

  • Participants
  • Parent commits 25352f1
  • Branches release-1.6.x

Comments (0)

Files changed (1)

File pypy/module/thread/gil.py

     thread.release_NOAUTO(spacestate.ll_GIL)
     set_errno(e)
 before_external_call._gctransformer_hint_cannot_collect_ = True
+before_external_call._dont_reach_me_in_del_ = True
 
 def after_external_call():
     e = get_errno()
     spacestate.after_thread_switch()
     set_errno(e)
 after_external_call._gctransformer_hint_cannot_collect_ = True
+after_external_call._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.