◐ Shell
clean mode source ↗

bpo-30860: Fix deadcode in obmalloc.c by vstinner · Pull Request #3499 · python/cpython

I'm not sure why this change is needed since Include/internal/pymalloc.h contains:

#if NB_SMALL_SIZE_CLASSES > 64
#error "NB_SMALL_SIZE_CLASSES should be less than 64"
#endif /* NB_SMALL_SIZE_CLASSES > 64 */

So the code is already dead code? Maybe the code should be removed, but add a comment to Include/internal/pymalloc.h to ask to update _PyMem_Initialize() if NB_SMALL_SIZE_CLASSES becomes larger than 64?