[issue43442] multicorevm: guarantee type multi sub interpreters safe

junyixie report at bugs.python.org
Tue Mar 9 01:39:09 EST 2021


New submission from junyixie <xie.junyi at outlook.com>:

in multi core cpython project. 
when use  multi sub interpreters, Type is not safe. Type shared by interpreters.
but isolate type may cause python abi/api change. python 4.0?

temporary solution:
1. add a type lock to guarantee type object safe in multi subinterpreters.
2. some thing like pycmethod object and descr in pytype, set their refcount to INT MAX.It is guaranteed that these objects will not be released. and not cause memory leaks, only one type exist in memory.

----------
messages: 388333
nosy: JunyiXie
priority: normal
severity: normal
status: open
title: multicorevm: guarantee type multi sub interpreters safe

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43442>
_______________________________________


More information about the Python-bugs-list mailing list