mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Merge pull request #3779 from karl-zylinski/clarify-usage-of-temp-allocator-arena
Clarify when the arena in base:runtime should be used
This commit is contained in:
+2
-1
@@ -12,7 +12,8 @@ Memory_Block :: struct {
|
|||||||
capacity: uint,
|
capacity: uint,
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: This is for internal use, prefer `Arena` from `core:mem/virtual` if necessary
|
// NOTE: This is a growing arena that is only used for the default temp allocator.
|
||||||
|
// For your own growing arena needs, prefer `Arena` from `core:mem/virtual`.
|
||||||
Arena :: struct {
|
Arena :: struct {
|
||||||
backing_allocator: Allocator,
|
backing_allocator: Allocator,
|
||||||
curr_block: ^Memory_Block,
|
curr_block: ^Memory_Block,
|
||||||
Reference in New Issue
Block a user