Graham Dumpleton added the comment:

Right now mod_wsgi is the main user of sub interpreters. I wasn't even aware of 
this issue until Jesse found it. Thus in 7+ years, it never presented a problem 
in practice, possibly because in mod_wsgi sub interpreters are only ever 
destroyed on process shutdown and causing an issue at that point or a process 
crash was not noticed and tolerable

If however you are going to implement the "parallelism with sub-interpreters' 
idea you are making the possibility of encountering problems much more 
prevalent because you will likely have many more people using the feature, plus 
that a sub interpreter may be ephemeral and not necessarily kept around for the 
life of process, but destroyed at any time thus more readily pushing GC of 
objects into a different sub interpreter context if that is what can occur now.

It therefore seems to me that this would open up a huge can of worms if left to 
work as it does now with users seeing all sorts of unexpected behaviour if not 
very careful. Also, for GC of objects to be able to be done in a different 
interpreter context seems to suggest to me that the global GIL for whole 
process couldn't be eliminated in the first place. So at this I point can't see 
how you could move to a separate GIL for each interpreter context, if GC for 
each interpreter can't be separated easily or at all.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24554>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to