Message388333
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. |
|
Date |
User |
Action |
Args |
2021-03-09 06:39:09 | JunyiXie | set | recipients:
+ JunyiXie |
2021-03-09 06:39:09 | JunyiXie | set | messageid: <1615271949.39.0.761711981619.issue43442@roundup.psfhosted.org> |
2021-03-09 06:39:09 | JunyiXie | link | issue43442 messages |
2021-03-09 06:39:08 | JunyiXie | create | |
|