Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.79 KB

readme.md

File metadata and controls

19 lines (17 loc) · 1.79 KB

Heap Demos

So the purpose of this section is to show various heap functionalities I think are relevant. This will be shown via stepping through code in a debugger, and actually seeing the memory layout of the heap when certain functionalities occur.

Functionality Name Category Brief Description
Heap Debugging Malloc Basic intro into heap debugging
Chunk Header Malloc Shows the contents of a malloc chunk header
Top Chunk Malloc Shows Allocation from and Consolidation to the Top Chunk
Consolidation Malloc Shows Backwards and Forwards Heap Chunk Consolidation
Sysmalloc Allocation Malloc Shows allocation from Sysmalloc
Systrim Malloc Shows memory returning back to the system with systrim
Tcache Basic Tcache Shows basic tcache functionality, with insertion/removal of chunks
Fastbin Basic Fastbin Shows basic fastbin functionality, with insertion/removal of chunks
Fastbin Consolidation Fastbin Shows basic fastbin consolidation
Unsorted Bin Basic Unsorted Bin Shows basic unsorted bin functionality
Small Bin Basic Small Bin Shows Small Bin Insertion / Removal
Large Bin Basic Large Bin Shows Large Bin Insertion / Removal
All Bin Searching/Last Remainder Large Bin Shows allocation from the last remainder chunk