Lec10 Heap Behind the Curtain (Arif Butt @ PUCIT)
This session start with a discussion on types of heap allocators. A quick review on malloc family of functions for allocating, using and freeing unnamed memory on heap. Role of system calls brk() and sbrk() in management of heap. The basic data structures used in management of heap for allocated and unallocated blocks. Common programming errors related to heap management. Tools and libraries for malloc debugging like splint, electric-fence, and Valgrind.
Example Codes: https://bitbucket.org/arifpucit/spvl-repo/src