Mark Shannon <m...@hotpy.org> added the comment:

Consider the case where a thread that doesn't hold the GIL attempts to get a 
reference on `None`.

The problem with having a single immortal `None`, is that it will cause data 
cache thrashing as two different CPUs modify the refcount on the shared `None` 
object.
Each subinterpreter needs its own distinct `None`.

`None` could be made immortal, it just can't be shared between sub-interpreters.

----------
nosy: +Mark.Shannon

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

Reply via email to