This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: multicorevm: guarantee type multi sub interpreters safe
Type: Stage:
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: JunyiXie
Priority: normal Keywords:

Created on 2021-03-09 06:39 by JunyiXie, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg388333 - (view) Author: junyixie (JunyiXie) * Date: 2021-03-09 06:39
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.
History
Date User Action Args
2022-04-11 14:59:42adminsetgithub: 87608
2021-03-09 06:39:09JunyiXiecreate