Message218953
"Ah, so this means CF's patch will make the pickle memotable invisible to tracemalloc?"
Currently, _Py_hashtabe uses PyMem_RawMalloc and PyMem_RawFree by default (realloc is not needed, we need to keep the previous buckets on rehash). Using _Py_hashtable_new_full, you can choose a different memory allocator.
Hum, wait. tracemalloc uses trace PyMem_RawMalloc and PyMem_RawFree. In fact, tracemalloc ignores reentrant calls to the memory allocator. So now I don't remember exactly why I chose a custom hash table implementation :-) Maybe because Python dict requires Python objects with reference counter, use the garbage collector, etc. |
|
Date |
User |
Action |
Args |
2014-05-23 09:26:44 | vstinner | set | recipients:
+ vstinner, tim.peters, pitrou, alexandre.vassalotti, neologix, serhiy.storchaka |
2014-05-23 09:26:44 | vstinner | set | messageid: <1400837204.7.0.773938094899.issue21556@psf.upfronthosting.co.za> |
2014-05-23 09:26:44 | vstinner | link | issue21556 messages |
2014-05-23 09:26:43 | vstinner | create | |
|