Source

pypy / pypy / tool / isolate.py

Author Commit Message Labels Comments Date
Samuele Pedroni
(cfbolz, pedronis) - add a way to control isolated and DEBUG_DEFINES for the c backend and in theory other backend specific options - add a shortcut to cleanup isolates on the invokers
Samuele Pedroni
switch to using popen directly for isolate. The problem is that threads used by execnet and Boehm result in segfaults because obviously the hosting cpython is not compiled in such a way that new threads are advertised to Boehm.
Samuele Pedroni
fixed bug close->_close.
Samuele Pedroni
simple interface to load a module in a separate process and invoke functions in it with simple args and return values. For now using py.execnet, but it should be easy to reimplement or have multiple implementation with fork/pipes for more speed or popen directly. A isolate instance can be used as a module mod to be invoke functions, mod.f(...). the only difference is that it is better to call the close_isolate cleanup function on it when done. To be used for things like test_boehm...