New issue 2585: cpyext: running lldebug0 shows many leftover BaseCpyTypedescr.allocate https://bitbucket.org/pypy/pypy/issues/2585/cpyext-running-lldebug0-shows-many
mattip: running this script ``test.py``: ```python import pandas as pd values = range(55109); data = pd.DataFrame.from_dict({'a': values, 'b': values, 'c': values, 'd': values}) ``` with a lldebug0 pypy like this ```shell pip install numpy pandas PYPY_ALLOC=1 ./pypy -c test.py 2>&1 1>/dev/null | cut -b 15-200 |sort | uniq -c ``` gives me the following output: ``` 1 mallocs left (most recent first) 1 pypy_g_allocate_ctxobj 232981 pypy_g_BaseCpyTypedescr_allocate 23 pypy_g_CPyListStorage___init__ 1 pypy_g_IncrementalMiniMarkGC_deal_with_objects_with_fin 1 pypy_g_IncrementalMiniMarkGC_deal_with_old_objects_with 1 pypy_g_IncrementalMiniMarkGC_invalidate_old_weakrefs 1 pypy_g_IncrementalMiniMarkGC__minor_collection 3 pypy_g_IncrementalMiniMarkGC_rawrefcount_init 2 pypy_g_IncrementalMiniMarkGC_rrc_major_collection_free 7 pypy_g_IncrementalMiniMarkGC_setup 1 pypy_g_InterpreterState_new_thread_state 1 pypy_g__ll_dict_resize_to__DICTPtr_Signed 5 pypy_g_ll_newdict_size__Struct_DICTLlT_Signed 907 pypy_g_make_GetSet 127 pypy_g_PyObject_Malloc 1272 pypy_g_str2charp 93 pypy_g_type_alloc 111 pypy_g_update_all_slots 4 pypy_g_W_Array_allocate ``` Note the large number of ``pypy_g_BaseCpyTypedescr_allocate`` Shouldn't they be collected at some stage? _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue