Add heap_debug_get_allocation_info() to retrieve the size of the allocation as

well as the thread allocating it. Can for example be used to verify that an
object or buffer is as large as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35480 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2010-02-15 20:57:52 +00:00
parent 479e05cec9
commit c1502cf1b8
2 changed files with 139 additions and 0 deletions
+3
View File
@@ -24,6 +24,9 @@ void heap_debug_dump_heaps(bool dumpAreas, bool dumpBins);
void *heap_debug_malloc_with_guard_page(size_t size);
status_t heap_debug_get_allocation_info(void *address, size_t *size,
thread_id *thread);
#ifdef __cplusplus
}
#endif