mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
Minimize memory usage by having an arena per thread rather than an arena per file
This commit is contained in:
@@ -89,7 +89,9 @@ template <typename T>
|
||||
void slice_init(Slice<T> *s, gbAllocator const &allocator, isize count) {
|
||||
GB_ASSERT(count >= 0);
|
||||
s->data = gb_alloc_array(allocator, T, count);
|
||||
GB_ASSERT(s->data != nullptr);
|
||||
if (count > 0) {
|
||||
GB_ASSERT(s->data != nullptr);
|
||||
}
|
||||
s->count = count;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user