I suggest filing a bug to track this...

On Thu, May 23, 2019 at 10:13 AM Tim Peters <tim.peters@gmail.com> wrote:
[Inada Naoki <songofacandy@gmail.com>]
> ...
> 2. This loop is cleary hot:
> https://github.com/python/cpython/blob/51aa35e9e17eef60d04add9619fe2a7eb938358c/Objects/obmalloc.c#L1816-L1819

Which is 3 lines of code plus a closing brace.  The OP didn't build
their own Python, and the source from which it was compiled wasn't
available to them.  But they did say that when they got into gdb and
single-stepped, it was looping through the same three lines of code,
in obmalloc.c, over & over.  Which is 100% consistent with the loop
you identified as being "the hot spot".
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/greg%40krypto.org