X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Finclude%2Fheap.h;h=bfffcb29a9f38337dd648db13051fe8f685ec552;hb=85362e8a4c919b58cd261345d29f26bae4ad75e2;hp=ddb7d924f1211c8fcb25479d6e8da2e2fa12de19;hpb=bb3e698f1c68cc638eb070d848293ec6a30cb813;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/include/heap.h b/KernelLand/Kernel/include/heap.h index ddb7d924..bfffcb29 100644 --- a/KernelLand/Kernel/include/heap.h +++ b/KernelLand/Kernel/include/heap.h @@ -13,6 +13,12 @@ extern void *Heap_Reallocate(const char *File, int Line, void *Ptr, size_t Bytes extern void Heap_Deallocate(const char *File, int Line, void *Ptr); extern int Heap_IsHeapAddr(void *Ptr); extern void Heap_Validate(void); +/** + * \brief Hint to the heap code to put a watchpoint on this block's memory + * + * Use sparingly, watchpoints are limited and/or very expensive (or not even implemented) + */ +extern int Heap_WatchBlock(void *Ptr); #define malloc(size) Heap_Allocate(_MODULE_NAME_"/"__FILE__, __LINE__, (size)) #define calloc(num,size) Heap_AllocateZero(_MODULE_NAME_"/"__FILE__, __LINE__, (num)*(size))