👩💻 Join our community of thousands of amazing developers!
It is not uncommon for a program to split allocations among multiple heaps. For example, you might dedicate a separate heap for each thread, to reduce heap contention, on the theory that the vast majority of memory blocks are allocated and freed by the same thread.¹ But every so often, The post How can I find the heap that a memory block originally came from, so I can free it properly? appeared first on The Old New Thing....