Hi Maciej,

On 25 June 2015 at 19:48, Maciej Fijalkowski <fij...@gmail.com> wrote:
> so far you can't do it (initialize pypy twice), we can maybe think
> about supporting it (and e.g. have interpreter instances) but it's
> quite some work.

This might be what you have in mind, but note that this case could be
supported generically from RPython (without hacking at the PyPy
source): when the RPython program starts, simply copy all global
variables.  I think that this would also make a copy of the JIT and
the GC.  For example, the GC is controlled mostly by a prebuilt
IncrementalMiniMarkGC instance, which is a global variable.  It's
actually very easy to do (it's done in STM for example) but at the
cost of one extra indirection for every prebuilt constant access.
Trying to reduce this cost is more challenging (but on the other hand
probably too small to measure anyway).


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to