112 #include "lub/types.h"
113 #include "lub/c_decl.h"
839 lub_heap__get_block_overhead(
lub_heap_t *instance,
843 lub_heap__get_block_size(
lub_heap_t *instance,
878 const char *substring
890 lub_heap__get_framecount(
void);
893 lub_heap_validate_pointer(
lub_heap_t *instance,
901 #define LUB_HEAP_ZERO_ALLOC ((void*)-1)
924 const char *program_name
928 #if defined(__CYGWIN__)
935 cygwin_lub_heap_init(
const char *file_name);
937 #define lub_heap_init(arg0) cygwin_lub_heap_init(arg0)
969 size_t num_max_blocks
1045 size_t num_max_blocks
size_t segs_bytes
Definition: heap.h:140
void lub_heap_leak_restore_detection(lub_heap_t *instance)
bool_t lub_heap_check_memory(lub_heap_t *instance)
struct lub_heap_free_block_s lub_heap_free_block_t
Definition: heap.h:124
size_t alloc_bytes
Definition: heap.h:169
size_t static_overhead
Definition: heap.h:231
void lub_heap_show(lub_heap_t *instance, bool_t verbose)
lub_heap_show_e
Definition: heap.h:386
void lub_heap_leak_scan(void)
typedef_BEGIN_C_DECL struct lub_heap_s lub_heap_t
Definition: heap.h:119
bool_t lub_heap_check(bool_t enable)
size_t alloc_hightide_blocks
Definition: heap.h:190
size_t alloc_blocks
Definition: heap.h:164
bool_t lub_heap_is_checking(void)
void * lub_heap_static_alloc(lub_heap_t *instance, size_t size)
void lub_heap_foreach_free_block(lub_heap_t *instance, lub_heap_foreach_fn *fn, void *arg)
lub_heap_status_t lub_heap_cache_init(lub_heap_t *instance, lub_heap_align_t max_block_size, size_t num_max_blocks)
size_t static_blocks
Definition: heap.h:221
size_t lub_heap_overhead_size(lub_heap_align_t max_block_size, size_t num_max_blocks)
void lub_heap__get_stats(lub_heap_t *instance, lub_heap_stats_t *stats)
size_t segs
Definition: heap.h:136
void lub_heap_stop_here(lub_heap_status_t status, char *old_ptr, size_t new_size)
size_t free_overhead
Definition: heap.h:158
void lub_heap_destroy(lub_heap_t *instance)
bool_t lub_heap_is_tainting(void)
size_t alloc_overhead
Definition: heap.h:173
size_t free_bytes
Definition: heap.h:154
lub_heap_t * lub_heap_create(void *start, size_t size)
bool_t
Definition: types.h:18
size_t alloc_total_blocks
Definition: heap.h:179
size_t segs_overhead
Definition: heap.h:144
void lub_heap_foreach_segment(lub_heap_t *instance, lub_heap_foreach_fn *fn, void *arg)
lub_heap_status_t
Definition: heap.h:238
void lub_heap_add_segment(lub_heap_t *instance, void *start, size_t size)
void lub_heap__set_framecount(unsigned framecount)
bool_t lub_heap_taint(bool_t enable)
size_t lub_heap__get_max_free(lub_heap_t *instance)
void lub_heap_leak_suppress_detection(lub_heap_t *instance)
size_t free_hightide_overhead
Definition: heap.h:215
void lub_heap_foreach_fn(void *block, unsigned index, size_t size, void *arg)
Definition: heap.h:409
size_t alloc_hightide_overhead
Definition: heap.h:201
size_t alloc_total_bytes
Definition: heap.h:184
size_t free_blocks
Definition: heap.h:150
lub_heap_status_t lub_heap_realloc(lub_heap_t *instance, char **ptr, size_t size, lub_heap_align_t alignment)
void lub_heap_init(const char *program_name)
bool_t lub_heap_leak_report(lub_heap_show_e how, const char *substring)
size_t alloc_hightide_bytes
Definition: heap.h:196
size_t free_hightide_blocks
Definition: heap.h:206
size_t free_hightide_bytes
Definition: heap.h:210
size_t static_bytes
Definition: heap.h:226
lub_heap_align_t
Definition: heap.h:270