Message300945
You must hold the GIL to call PyMem_Malloc(). A debug assert should be
raised if you don't hold the GIL since Python 3.6 with PYTHONMALLOC=debug.
Call PyMem_RawMalloc().
I fixed Python 3, no?
For Python 2, in practice you can call PyMem_Malloc() without holding the
GIL, it's just malloc() which is thread safe. |
|
Date |
User |
Action |
Args |
2017-08-28 09:32:53 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka, xiang.zhang |
2017-08-28 09:32:53 | vstinner | link | issue31282 messages |
2017-08-28 09:32:53 | vstinner | create | |
|