wip: bug fixes

This commit is contained in:
daanx 2024-11-29 20:23:39 -08:00
parent 0f635413d6
commit 978d844e15
6 changed files with 78 additions and 65 deletions

View file

@ -171,12 +171,13 @@ static inline bool mi_memkind_is_os(mi_memkind_t memkind) {
}
typedef struct mi_memid_os_info {
void* base; // actual base address of the block (used for offset aligned allocations)
void* base; // actual base address of the block (used for offset aligned allocations)
size_t alignment; // alignment at allocation
} mi_memid_os_info_t;
typedef struct mi_memid_arena_info {
size_t block_index; // index in the arena
uint32_t block_index; // base index in the arena
uint32_t block_count; // allocated blocks
mi_arena_id_t id; // arena id (>= 1)
bool is_exclusive; // this arena can only be used for specific arena allocations
} mi_memid_arena_info_t;