• Victor Stinner's avatar
    bpo-35368: Make PyMem_Malloc() thread-safe in debug mode (GH-10828) · c275be54
    Victor Stinner authored
    When Python is compiled in debug mode, PyMem_Malloc() uses debug
    hooks, but it also uses pymalloc allocator instead of malloc().
    Problem: pymalloc is not thread-safe, whereas PyMem_Malloc() is
    thread-safe in release mode (it's a thin wrapper to malloc() in this
    case).
    
    Modify the debug hook to use malloc() for PyMem_Malloc().
    c275be54
2018-11-30-17-50-28.bpo-35368.DNaDao.rst 62 Bytes