Remove debug code
This commit is contained in:
@@ -9,7 +9,6 @@ struct MemoryBlockOptions {
|
|||||||
U32 commit_now_size;
|
U32 commit_now_size;
|
||||||
U32 page_size;
|
U32 page_size;
|
||||||
};
|
};
|
||||||
static U32 idx;
|
|
||||||
static MemoryBlock *memoryblock_allocate(const MemoryBlockOptions *opts)
|
static MemoryBlock *memoryblock_allocate(const MemoryBlockOptions *opts)
|
||||||
{
|
{
|
||||||
U32 aligned_size = AlignUpPow2(opts->size, opts->page_size);
|
U32 aligned_size = AlignUpPow2(opts->size, opts->page_size);
|
||||||
@@ -26,7 +25,6 @@ static MemoryBlock *memoryblock_allocate(const MemoryBlockOptions *opts)
|
|||||||
block->arena_offset = 0;
|
block->arena_offset = 0;
|
||||||
block->prev = NULL;
|
block->prev = NULL;
|
||||||
block->committed_end = aligned_commit_now_size;
|
block->committed_end = aligned_commit_now_size;
|
||||||
block->idx = idx++;
|
|
||||||
|
|
||||||
ASAN_POISON_MEMORY_REGION(block->base, block->size);
|
ASAN_POISON_MEMORY_REGION(block->base, block->size);
|
||||||
ASAN_UNPOISON_MEMORY_REGION(block, MemoryBlock_Header_Size);
|
ASAN_UNPOISON_MEMORY_REGION(block, MemoryBlock_Header_Size);
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ struct MemoryBlock {
|
|||||||
U64 arena_offset; // absolute offset of base relative to the first linked arena
|
U64 arena_offset; // absolute offset of base relative to the first linked arena
|
||||||
U32 committed_end; // end of committed region. Will be page aligned
|
U32 committed_end; // end of committed region. Will be page aligned
|
||||||
MemoryBlock *prev;
|
MemoryBlock *prev;
|
||||||
U32 idx;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct Arena Arena;
|
typedef struct Arena Arena;
|
||||||
|
|||||||
Reference in New Issue
Block a user