[pypy-dev] Thinking about the GIL

Amaury Forgeot d'Arc amauryfa at gmail.com
Wed Mar 16 09:59:35 CET 2011


Hi

2011/3/16  <Ben.Young at sungard.com>:
> Having said that, if the PyPy GCs were thread-safe, how many other
> structures would need to be changed to allow a free threaded python that's
> "use at own risk" e.g. one that's allowed to crash if you do silly things as
> I guess most people would be happy with that. The import machinery would
> need to be thread safe but how much more?

All low-level structures: rlist, rdict &co.
For example these functions would need some kind of synchronization:
https://bitbucket.org/pypy/pypy/src/6dabfe362323/pypy/rpython/lltypesystem/rdict.py#cl-712
And probably many more...

-- 
Amaury Forgeot d'Arc



More information about the Pypy-dev mailing list