Heap Information and Checking

┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _heapset │ "malloc.h" │ _heapset │ Validates │
│ │ │ │ all allo- │
│ │ │ │ cated and │
│ │ │ │ freed │
│ │ │ │ objects │
│ │ │ │ on the │
│ │ │ │ default │
│ │ │ │ heap, and │
│ │ │ │ sets all │
│ │ │ │ free │
│ │ │ │ memory to │
│ │ │ │ a speci- │
│ │ │ │ fied │
│ │ │ │ value. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _heapchk │ "malloc.h" │ _heapchk │ Checks │
│ │ │ │ all allo- │
│ │ │ │ cated and │
│ │ │ │ freed │
│ │ │ │ objects │
│ │ │ │ on the │
│ │ │ │ default │
│ │ │ │ storage │
│ │ │ │ heap for │
│ │ │ │ minimal │
│ │ │ │ consist- │
│ │ │ │ ency. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _heap_walk │ "malloc.h" │ _heap_walk │ Returns │
│ │ │ │ informa- │
│ │ │ │ tion │
│ │ │ │ about │
│ │ │ │ allocated │
│ │ │ │ and freed │
│ │ │ │ objects │
│ │ │ │ on the │
│ │ │ │ default │
│ │ │ │ heap. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _mheap │ "umalloc.h" │ _mheap │ Finds out │
│ │ │ │ which │
│ │ │ │ heap an │
│ │ │ │ object │
│ │ │ │ was allo- │
│ │ │ │ cated │
│ │ │ │ from. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _msize │ "stdlib.h"" │ _msize │ Returns │
│ │ malloc.h" │ │ the size │
│ │ │ │ of an │
│ │ │ │ allocated │
│ │ │ │ block. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _uheapchk │ "umalloc.h" │ _uheapchk │ Validates │
│ │ │ │ all allo- │
│ │ │ │ cated and │
│ │ │ │ freed │
│ │ │ │ objects │
│ │ │ │ on a │
│ │ │ │ specified │
│ │ │ │ heap. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _uheapset │ "umalloc.h" │ _uheapset │ Validates │
│ │ │ │ all allo- │
│ │ │ │ cated and │
│ │ │ │ freed │
│ │ │ │ objects │
│ │ │ │ on a │
│ │ │ │ specified │
│ │ │ │ heap, and │
│ │ │ │ sets all │
│ │ │ │ free │
│ │ │ │ memory to │
│ │ │ │ a speci- │
│ │ │ │ fied │
│ │ │ │ value. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ _uheap_walk │ "umalloc.h" │ _uheap_walk │ Returns │
│ │ │ │ informa- │
│ │ │ │ tion │
│ │ │ │ about │
│ │ │ │ allocated │
│ │ │ │ and freed │
│ │ │ │ objects │
│ │ │ │ on a │
│ │ │ │ specified │
│ │ │ │ heap. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _ustats │ "umalloc.h" │ _ustats │ Gets │
│ │ │ │ informa- │
│ │ │ │ tion │
│ │ │ │ about a │
│ │ │ │ specified │
│ │ │ │ heap. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘


[Back: Allocating and Freeing Memory]
[Next: Heap Creation and Management]