arena icon indicating copy to clipboard operation
arena copied to clipboard

default capacity should be independent of architecture

Open giuliano-macedo opened this issue 7 months ago • 0 comments

The default capacity of an arena was being set to ARENA_REGION_DEFAULT_CAPACITY * sizeof(uintptr_t) on new_region, therefore I think it makes sense to divide it on arena_alloc so that ARENA_REGION_DEFAULT_CAPACITY would mean the default capacity in bytes, not in terms of N pointers, if the latter was the intent, then I think ARENA_REGION_DEFAULT_CAPACITY should have a different name.

giuliano-macedo avatar Sep 02 '25 20:09 giuliano-macedo